From: huiliang wu Date: 2006-06-16T16:58:09+09:00 Subject: How does ruby load a shared library ------=_Part_16845_17015217.1150444685940 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I created an c extension which is linked with another shared library named libfoo.so. When I use this extension in ruby script, it evoke an error message: ./demo.rb:3:in 'require': libfoo.so: cannot open shared object file: No such file or directory If I move libfoo.so to /usr/lib, it works. Is ther any other ways to deal with such problem? As I don't want to put the library into /usr/lib or set the LD_LIBRARY_PATH. Thanks in advance! ------=_Part_16845_17015217.1150444685940--