Closed xygblarbin closed 10 years ago
Did you follow the installation instructions? It looks like you're missing GCC.
Gcc is present On Aug 19, 2014 1:29 PM, "Kelly" notifications@github.com wrote:
Did you follow the installation instructions? It looks like you're missing GCC.
— Reply to this email directly or view it on GitHub https://github.com/kelly/node-i2c/issues/39#issuecomment-52669021.
need to install gcc and gcc-c++
Here is some output:
gyp http GET http://nodejs.org/dist/v0.8.22/node-v0.8.22.tar.gz gyp http 200 http://nodejs.org/dist/v0.8.22/node-v0.8.22.tar.gz Traceback (most recent call last): File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp", line 15, in
import gyp
File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 8, in
import gyp.input
File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in
from compiler.ast import Const
ImportError: No module named compiler.ast
And the err section:
gyp ERR! configure error gyp ERR! stack Error:
gyp
failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:416:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17) gyp ERR! stack at Process._handle.onexit (child_process.js:678:10) gyp ERR! System Linux 3.8.13 gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/root/node_modules/i2c gyp ERR! node -v v0.8.22 gyp ERR! node-gyp -v v0.8.5 gyp ERR! not ok npm ERR! i2c@0.1.4 install:node-gyp rebuild
npm ERR!sh "-c" "node-gyp rebuild"
failed with 1 npm ERR! npm ERR! Failed at the i2c@0.1.4 install script. npm ERR! This is most likely a problem with the i2c package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls i2c npm ERR! There is likely additional logging output above.npm ERR! System Linux 3.8.13 npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "i2c" npm ERR! cwd /home/root npm ERR! node -v v0.8.22 npm ERR! npm -v 1.2.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/root/npm-debug.log npm ERR! not ok code 0
The log is 727 lines long, so I won't post it here unless you need/want it.