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

Mac OSx: [Error: Unable to load shared library rsaBinding.node] #4

Open
nourspace opened this issue Dec 12, 2011 · 7 comments
Open

Comments

@nourspace
Copy link

Hi thanks for this package it works perfectly on linux, however when i tried it on my macbook with snow leopard i keep getting this error when requiring the rsa in any node script.

SYRONs-MacBook-Pro:chrisa-node-rsa-ecefeb9 SYRON$ node test/test.js
[Error: Unable to load shared library /Users/SYRON/Downloads/chrisa-node-rsa-ecefeb9/build/Release/rsaBinding.node]

screenshot:
http://cl.ly/280m1M2m3p0g3p2K0Q3I

Thanks

@chrisa
Copy link
Owner

chrisa commented Dec 12, 2011

Hi,

Which version of node, and which version of OS X are you using?

Using the 06x-compat branch definitely works on 10.7 / Lion.

Thanks
Chris.

@nourspace
Copy link
Author

mac osx 10.6.8
node v0.6.3

@nourspace
Copy link
Author

I built in on lion then copied the folder to my snow leopard and it worked after removing/uncommenting this line from package.json

// "files" : [ "LICENCE", "README.md", "test", "rsa.public", "rsa.private" ],

@saltatory
Copy link

+1

Ubuntu 11.04 32 and 64 bit.

The solution to the problem for me is to manually copy rsaBinding.node from build/Release to the root of the module. Then all works fine.

@chrisa
Copy link
Owner

chrisa commented Dec 14, 2011

So the cause of this seems to be that depending on platform, the way node was built, node version and maybe other things, the directory created under build/ varies: "default", "Release", "Debug" etc.

There is code in the wscript to symlink from the root of the module to the actual file built in build/Something/rsaBinding.node, but it doesn't appear to be correct - so manually copying instead gets things working.

I need to figure out what's the correct thing to do in the wscript - there must be a standard incantation for this that I'm missing.

Thanks for all the feedback here!

@chrisa
Copy link
Owner

chrisa commented Jan 5, 2012

I've adjusted the packaging for this module, and it appears to install correctly on both Linux (Ubuntu 11.04) and OSX (10.7).

The new version is 0.0.2, available in the npm repo or tagged v0.0.2 here.

@tzusman
Copy link

tzusman commented Sep 7, 2012

It looks like I'm running into a similar problem. Here's the output from running the tests: https://gist.github.com/4af16151605d06ca09e1 . I installed via npm and am running OSX 10.7.3

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

4 participants