--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
{
'ldflags': ['-L/usr/local/hdf5/lib']
}
ryan@ryan-server:~/repos/node-hdf5$ node> require('./build/Release/hdf5')Error: libhdf5.so.7: cannot open shared object file: No such file or directoryat Object..node (module.js:475:11)at Module.load (module.js:351:32)at Function._load (module.js:309:12)at Module.require (module.js:357:17)at require (module.js:373:17)at repl:1:2at REPLServer.eval (repl.js:110:21)at Interface.<anonymous> (repl.js:249:12)at Interface.emit (events.js:87:17)at Interface._onLine (readline.js:178:10)
The ldflags setting is what is passed to the linker at the time of
compilation. LD_LIBRARY_PATH affects the search path of the dynamic
linker, which is what is run when a program starts up.
What I mean to say is that a linker is not the same thing as a dynamic
linker (though they're related) and that gyp is only involved in the
compilation phase.
You don't*. The dynamic linker only searches in a set of blessed paths
unless you set LD_LIBRARY_PATH. You can dlopen() the .so and look up
symbols with dlsym() (but watch out for C++ name mangling).
* Okay, that's not entirely true. There are hacks like setting $ORIGIN
but not all linkers support that.
Yes. `man ld` and search for rpath. Restrictions may apply to setuid
root programs (which node shouldn't be).