On 6/16/06, huiliang wu <huiliang.wu / gmail.com> 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!
>

If you're on GNU/Linux, maybe this article will help:
http://wiki.linuxquestions.org/wiki/Library-related_Commands_and_Files

---John