From: Timothy Hunter Date: 2006-06-16T20:06:17+09:00 Subject: Re: How does ruby load a shared library huiliang wu wrote: > 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! > Check out ldconfig(8)