chrisa / node-dtrace-provider

Native DTrace probes for node.js apps
Other
321 stars 68 forks source link

dtrace-provider fails to install on OSX Yosemite #53

Closed howarddierking closed 10 years ago

howarddierking commented 10 years ago

Noticed a dtrace error when installing the bunyan logging framework. Tried installing in its own package and got the following:

➜  dtrace-test  npm install dtrace-provider --save
npm WARN package.json dtrace-test@1.0.0 No description
npm WARN package.json dtrace-test@1.0.0 No repository field.
npm WARN package.json dtrace-test@1.0.0 No README data
\
> dtrace-provider@0.3.0 install /Users/howardd/Dev/scratch/dtrace-test/node_modules/dtrace-provider
> scripts/install.js

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:1001:11)
    at Process.ChildProcess._handle.onexit (child_process.js:792:34)
npm ERR! dtrace-provider@0.3.0 install: `scripts/install.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the dtrace-provider@0.3.0 install script.
npm ERR! This is most likely a problem with the dtrace-provider package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     scripts/install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls dtrace-provider
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 14.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "dtrace-provider" "--save"
npm ERR! cwd /Users/howardd/Dev/scratch/dtrace-test
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.24
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/howardd/Dev/scratch/dtrace-test/npm-debug.log
npm ERR! not ok code 0

Going to try and rebuild with node-gyp and see if that fixes, but wanted to raise the issue here as well.

howarddierking commented 10 years ago

running node-gyp produces the following:

➜  node-dtrace-provider git:(master) node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.2
gyp info using node@0.10.32 | darwin | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
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   '/Users/howardd/Dev/scratch/node-dtrace-provider/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   '/Users/howardd/.node-gyp/0.10.32/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/howardd/.node-gyp/0.10.32',
gyp info spawn args   '-Dmodule_root_dir=/Users/howardd/Dev/scratch/node-dtrace-provider',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: /Users/howardd/Dev/scratch/node-dtrace-provider) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/bin/node-gyp" "configure"
gyp ERR! cwd /Users/howardd/Dev/scratch/node-dtrace-provider
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
tjfontaine commented 10 years ago

Are you installing via homebrew?

howarddierking commented 10 years ago

yes

tjfontaine commented 10 years ago

Fixed in 0.3.1