TooTallNate / ref

Turn Buffer instances into "pointers"
http://tootallnate.github.com/ref
453 stars 141 forks source link

error on raspberry #7

Closed fatshotty closed 12 years ago

fatshotty commented 12 years ago

Hello, i'm using vlc nodejs module that has a dependency to your ref nodejs module.

While performing npm install I have the following stack trace:

gyp info it worked if it ends with ok
gyp info using node-gyp@0.6.7
gyp info using node@0.8.9-pre | linux | arm
gyp info it worked if it ends with ok
gyp info using node-gyp@0.6.7
gyp info using node@0.8.9-pre | linux | arm
gyp ERR! configure error 
gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
gyp ERR! stack     at install (/home/pi/.nvm/v0.8.8pi/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:68:16)
gyp ERR! stack     at Object.commands.forEach.self.commands.(anonymous function) [as install] (/home/pi/.nvm/v0.8.8pi/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:56:37)
gyp ERR! stack     at getNodeDir (/home/pi/.nvm/v0.8.8pi/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:185:20)
gyp ERR! stack     at /home/pi/.nvm/v0.8.8pi/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:105:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:534:7)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack     at maybeClose (child_process.js:634:16)
gyp ERR! stack     at Socket.ChildProcess.spawn.stdin (child_process.js:806:11)
gyp ERR! stack     at Socket.EventEmitter.emit (events.js:88:17)
gyp ERR! stack     at Socket._destroy.destroyed (net.js:356:10)
gyp ERR! System Linux 3.2.27+
gyp ERR! command "node" "/home/pi/.nvm/v0.8.8pi/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/work/node-abx-raspberry/node_modules/vlc/node_modules/ref
gyp ERR! node -v v0.8.9-pre
gyp ERR! node-gyp -v v0.6.7
gyp ERR! not ok 

Is it an error due to the raspberry arch, or it is only me?

PS: I installed the your pi branch of nodejs

Thanks in advance

TooTallNate commented 12 years ago

You must pass the --nodedir flag to the directory containing the node source code when the node version ends in "-pre". So do something like this:

$ npm install --nodedir=/home/pi/node
fatshotty commented 12 years ago

thanks for reply.

I've tried and I've still have errors here is the npm log

http://pastie.org/private/equbwz30fktjofu49hlfdg

Any ideas?

Thanks again

fatshotty commented 12 years ago

Good, thanks a lot It is fixed now. I've done npm install --nodedir=/home/pi/node-src

in my case node-src is containing the source of nodejs. Once do that, it works!

Thanks ;)