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

Unable to load shared library /Users/gabriel/app/node_modules/forever/node_modules/daemon/lib/daemon.v0.6.11.node #14

Closed
gabipetrovay opened this issue Feb 21, 2012 · 6 comments

Comments

@gabipetrovay
Copy link

Hi,

I am using Node v0.6.11 on Mac OSX Lion.

I did npm rebuild and daemon.v0.6.11.node was rebuilt. (before it was daemon.v0.6.10.node).

When running forever module (that loads daemon module) I get:

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: Unable to load shared library /Users/gabriel/Work/jillix/node_modules/forever/node_modules/daemon/lib/daemon.v0.6.11.node
    at Object..node (module.js:472:11)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.<anonymous> (/Users/gabriel/app/node_modules/forever/node_modules/daemon/lib/daemon.js:12:11)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)

otool says:

gabriel$ otool -L node_modules/forever/node_modules/daemon/lib/daemon.v0.6.11.node 
node_modules/forever/node_modules/daemon/lib/daemon.v0.6.11.node:
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
@indexzero
Copy link
Owner

Have you tried reinstalling it instead of rebuilding it?

@gabipetrovay
Copy link
Author

Yes, both and it did not work. I HAD to rebuild otherwise you only have daemon.v0.6.10.node while daemon will look for the 0.6.11 version.

So I did both:

rm -R node_modules
npm install

or

npm rebuild

@gabipetrovay
Copy link
Author

Any ideas on how this can be solved?

Thanks!

@TooTallNate
Copy link

@gabipetrovay Use the branch from my pull request using node-gyp in #12, and the proper version for your architecture will be built.

@gabipetrovay
Copy link
Author

@TooTallNate Thank fit the tip! I would like to try the gyp branch. Do you know what the best way to try this is in an npm install scenario?

@indexzero
Copy link
Owner

This library is deprecated. Use detached child processes instead: http://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options

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

3 participants