[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Installing shared object library into non-standard directory

Joe Van Dyk

12/6/2006 8:15:00 PM

Hi,

I have ruby-gnome2 installed into a subdirectory of my application.
ruby-gnome2 has a library in it called glib2.so. I've added the
appropriate directories to $LOAD_PATH.

However, when I try to require some of the ruby-gnome2 libraries, I get:

/gui/lib/ruby-gnome2/lib/site_ruby/1.8/glib2.rb:68:in `require':
libruby.so.1.8: cannot open shared object file: No such file or
directory - ./gui/lib/ruby-gnome2/lib/site_ruby/1.8/i386-linux-gnu/glib2.so
(LoadError)

glib2.so does exist in that location though. Any ideas?

Thanks,
Joe

3 Answers

Joe Van Dyk

12/6/2006 8:21:00 PM

0

On 12/6/06, Joe Van Dyk <joevandyk@gmail.com> wrote:
> Hi,
>
> I have ruby-gnome2 installed into a subdirectory of my application.
> ruby-gnome2 has a library in it called glib2.so. I've added the
> appropriate directories to $LOAD_PATH.
>
> However, when I try to require some of the ruby-gnome2 libraries, I get:
>
> ./gui/lib/ruby-gnome2/lib/site_ruby/1.8/glib2.rb:68:in `require':
> libruby.so.1.8: cannot open shared object file: No such file or
> directory - ./gui/lib/ruby-gnome2/lib/site_ruby/1.8/i386-linux-gnu/glib2.so
> (LoadError)
>
> glib2.so does exist in that location though. Any ideas?


LD_LIBRARY_PATH is set to include the
/gui/lib/ruby-gnome2/lib/site_ruby/1.8/i386-linux-gnu/glib2.so
directory, btw.

Ara.T.Howard

12/6/2006 9:51:00 PM

0

Kouhei Sutou

12/7/2006 12:59:00 PM

0