-
Notifications
You must be signed in to change notification settings - Fork 8
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
Comments
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 |
mac osx 10.6.8 |
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" ], |
+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. |
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! |
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. |
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 |
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
The text was updated successfully, but these errors were encountered: