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

failed to install libdtrace on mac os x mavericks #12

Open
pace-noge opened this issue Feb 15, 2014 · 1 comment
Open

failed to install libdtrace on mac os x mavericks #12

pace-noge opened this issue Feb 15, 2014 · 1 comment

Comments

@pace-noge
Copy link

this the log i got from npm :

[email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the libdtrace package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild

@davepacheco
Copy link
Collaborator

Sorry it took me a while to look at this. I can't reproduce it on Mavericks 10.9.2 with node 0.10.12.

dap@spike tmp $ uname -a
Darwin spike.local 13.1.0 Darwin Kernel Version 13.1.0: Wed Apr  2 23:52:02 PDT 2014; root:xnu-2422.92.1~2/RELEASE_X86_64 x86_64

dap@spike tmp $ ls

dap@spike tmp $ npm install libdtrace
npm http GET https://registry.npmjs.org/libdtrace
npm http 304 https://registry.npmjs.org/libdtrace
npm http GET https://registry.npmjs.org/libdtrace/-/libdtrace-0.0.3.tgz
npm http 200 https://registry.npmjs.org/libdtrace/-/libdtrace-0.0.3.tgz
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http 200 https://registry.npmjs.org/bindings/1.0.0
npm http GET https://registry.npmjs.org/bindings/-/bindings-1.0.0.tgz
npm http 200 https://registry.npmjs.org/bindings/-/bindings-1.0.0.tgz

> [email protected] install /Users/dap/Desktop/tmp/node_modules/libdtrace
> node-gyp rebuild

  CXX(target) Release/obj.target/libdtrace/libdtrace.o
../libdtrace.cc:396:17: warning: unused variable 'dp' [-Wunused-variable]
        dtrace_prog_t *dp;
                       ^
../libdtrace.cc:397:20: warning: unused variable 'info' [-Wunused-variable]
        dtrace_proginfo_t info;
                          ^
2 warnings generated.
  SOLINK_MODULE(target) Release/dtrace.node
  SOLINK_MODULE(target) Release/dtrace.node: Finished
[email protected] node_modules/libdtrace
└── [email protected]

dap@spike tmp $ echo $?
0

dap@spike tmp $ node -v
v0.10.12

dap@spike tmp $ sudo node node_modules/libdtrace/examples/example1.js 
hello world

dap@spike tmp $ sudo node node_modules/libdtrace/examples/example2.js 
EXECNAME                                COUNT     
...
syslogd                                 8         

If this is still reproducible for you, can you provide the output of uname -a, node -v, and the full npm log? Thanks!

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

2 participants