Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install/build on raspberrypi (node@v0.11.4) #93

Closed
fabiosantoscode opened this issue Apr 15, 2014 · 5 comments
Closed

Can't install/build on raspberrypi (node@v0.11.4) #93

fabiosantoscode opened this issue Apr 15, 2014 · 5 comments

Comments

@fabiosantoscode
Copy link

Don't know if it's supposed to be installed in a raspi, or in this version of node (you state that it's compatible with 0.10, but not 0.11), but this is the error I get:

pi@raspberrypi ~ $ npm install gaze
[Lots of output...]

> gaze@0.6.2 install /home/pi/node_modules/gaze
> node-gyp rebuild

make: Entering directory `/home/pi/node_modules/gaze/build'
  CXX(target) Release/obj.target/pathwatcher/src/main.o
  CXX(target) Release/obj.target/pathwatcher/src/common.o
  CXX(target) Release/obj.target/pathwatcher/src/handle_map.o
../src/handle_map.cc: In member function ‘bool HandleMap::Erase(WatcherHandle)’:
../src/handle_map.cc:41:36: error: no matching function for call to ‘NanDisposePersistent(NanUnsafePersistent<v8::Value>&)’
../src/handle_map.cc:41:36: note: candidate is:
../node_modules/nan/nan.h:384:28: note: template<class T> void NanDisposePersistent(v8::Persistent<T>&)
../src/handle_map.cc: In member function ‘void HandleMap::Clear()’:
../src/handle_map.cc:48:38: error: no matching function for call to ‘NanDisposePersistent(NanUnsafePersistent<v8::Value>&)’
../src/handle_map.cc:48:38: note: candidate is:
../node_modules/nan/nan.h:384:28: note: template<class T> void NanDisposePersistent(v8::Persistent<T>&)
make: *** [Release/obj.target/pathwatcher/src/handle_map.o] Error 1
make: Leaving directory `/home/pi/node_modules/gaze/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:103:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.10.25+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/gaze
gyp ERR! node -v v0.11.4
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0

npm version is 1.3.4

I'm trying to install gulp, but gaze is a dependency.

Should I even be trying to install this on a raspberry pi?

Thanks --

@shama shama closed this as completed in 0f89570 Apr 15, 2014
@shama
Copy link
Owner

shama commented Apr 15, 2014

I wasn't planning on supporting node v0.11 but waiting until the stable v0.12 landed. But it is really only because of NanDispose was deprecated and I was trying to avoid the deprecation notices when building. So dropped those down and now support v0.11 because I think it's really cool you're installing on a raspberry pi.

Published as 0.6.3 let me know if you have any issues. Thanks!

@fabiosantoscode
Copy link
Author

I got some time to retry my ordeal. I was able to install everything and gaze compiled without errors.

Thank you very much for fixing this :)

@ming-codes
Copy link

I'm having the build issue with node@0.11.13 and gaze@0.6.4

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/pathwatcher/src/main.o] Error 1

I downgraded to 0.11.4 and it installed with warning.

@shama
Copy link
Owner

shama commented May 7, 2014

@Lightblade You'll likely continually run into issues using the bleeding edge of odd version branches of node as they are unstable versions.

@YvonneZhang
Copy link

Does it support node@0.11.13 now? Also failed to install gaze@0.6.4 with node@0.11.13 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants