I created an c extension which is linked with another shared library
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
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
library into /usr/lib or set the LD_LIBRARY_PATH.
Thanks in advance!