Installing shared object library into non-standard directory

J

Joe Van Dyk

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
 
J

Joe Van Dyk

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.
 
A

ara.t.howard

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

permissions?

what happens if you just do

ruby -r ./gui/lib/ruby-gnome2/lib/site_ruby/1.8/i386-linux-gnu/glib2.so -e :noop

yourself?

-a
 
K

Kouhei Sutou

Hi,

In <[email protected]>
"Re: Installing shared object library into non-standard directory" on Thu, 7 Dec 2006 05:20:55 +0900,
Joe Van Dyk said:
LD_LIBRARY_PATH is set to include the
./gui/lib/ruby-gnome2/lib/site_ruby/1.8/i386-linux-gnu/glib2.so
directory, btw.

You need to add
/gui/lib/ruby-gnome2/lib/site_ruby/1.8/i386-linux-gnu/ to
your $LOAD_PATH instead of LD_LIBRARY_PATH.

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top