Skip to content

Instantly share code, notes, and snippets.

@ryanneufeld
Created January 26, 2013 01:14
Show Gist options
  • Select an option

  • Save ryanneufeld/4639411 to your computer and use it in GitHub Desktop.

Select an option

Save ryanneufeld/4639411 to your computer and use it in GitHub Desktop.
root@beta:/usr/local/node-syslog# rm node_modules -r
root@beta:/usr/local/node-syslog# npm install
npm WARN cannot run in wd node-syslog@1.1.7 node-gyp rebuild (wd=/usr/local/node-syslog)
root@beta:/usr/local/node-syslog# npm install --unsafe-perm
> node-syslog@1.1.7 install /usr/local/node-syslog
> node-gyp rebuild
python: can't open file '/root/.node-gyp/0.8.6/tools/gyp_addon': [Errno 2] No such file or directory
gyp ERR! configure error
gyp ERR! stack Error: `gyp_addon` failed with exit code: 2
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Linux 3.2.0-27-generic-pae
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/node-syslog
gyp ERR! node -v v0.8.6
gyp ERR! node-gyp -v v0.6.3
gyp ERR! not ok
npm ERR! node-syslog@1.1.7 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the node-syslog@1.1.7 install script.
npm ERR! This is most likely a problem with the node-syslog 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 node-syslog
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-27-generic-pae
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--unsafe-perm"
npm ERR! cwd /usr/local/node-syslog
npm ERR! node -v v0.8.6
npm ERR! npm -v 1.1.48
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/node-syslog/npm-debug.log
npm ERR! not ok code 0
root@beta:/usr/local/node-syslog# node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@0.8.3
gyp info using node@0.8.6 | linux | ia32
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/node-syslog/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.node-gyp/0.8.6/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/0.8.6',
gyp info spawn args '-Dmodule_root_dir=/usr/local/node-syslog',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/usr/local/node-syslog/build'
CXX(target) Release/obj.target/syslog/syslog.o
SOLINK_MODULE(target) Release/obj.target/syslog.node
SOLINK_MODULE(target) Release/obj.target/syslog.node: Finished
COPY Release/syslog.node
make: Leaving directory `/usr/local/node-syslog/build'
gyp info ok
You have new mail in /var/mail/root
root@beta:/usr/local/node-syslog# npm link
npm WARN cannot run in wd node-syslog@1.1.7 node-gyp rebuild (wd=/usr/local/node-syslog)
/usr/local/lib/node_modules/node-syslog -> /usr/local/node-syslog
root@beta:/usr/local/node-syslog# cd ../cd ../
bash: cd: ../cd: No such file or directory
root@beta:/usr/local/node-syslog# cd ..
root@beta:/usr/local# cd notifier/
root@beta:/usr/local/notifier# npm link node-syslog
> node-syslog@1.1.7 install /usr/local/notifier/node_modules/node-syslog
> node-gyp rebuild
gyp ERR! clean error
gyp ERR! stack Error: EPERM, chmod 'build'
gyp ERR! System Linux 3.2.0-27-generic-pae
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/node-syslog
gyp ERR! node -v v0.8.6
gyp ERR! node-gyp -v v0.6.3
gyp ERR! not ok
npm ERR! node-syslog@1.1.7 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the node-syslog@1.1.7 install script.
npm ERR! This is most likely a problem with the node-syslog 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 node-syslog
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-27-generic-pae
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "link" "node-syslog"
npm ERR! cwd /usr/local/notifier
npm ERR! node -v v0.8.6
npm ERR! npm -v 1.1.48
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/notifier/npm-debug.log
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment