L
Lennon Day-Reynolds
I'm trying to distribute a version of Ruby along with an application,
and have a dependency on several shared objects that need to be
distributed with it. On Windows, this is no problem: just add the DLLs
to the 'bin' directory from which Ruby is run, and the system picks
them up and loads them as needed.
Under Linux, though, I seem to be completely unable to get Ruby to
recognize the libraries. My file tree looks something like this:
app/
(my sources and data files go here)
ruby/
bin/
ruby
lib/
<somelib>.so
ruby/
1.8/
...
I'm setting LD_RUN_PATH to './ruby/lib', and then launching the Ruby
binary with the flags '-I./ruby/lib/ruby/1.8
-I./ruby/lib/ruby/1.8/i686-linux'. It finds the Ruby libraries and
shared object files just fine, but the <somelib>.so is not being
picked up.
Any ideas?
and have a dependency on several shared objects that need to be
distributed with it. On Windows, this is no problem: just add the DLLs
to the 'bin' directory from which Ruby is run, and the system picks
them up and loads them as needed.
Under Linux, though, I seem to be completely unable to get Ruby to
recognize the libraries. My file tree looks something like this:
app/
(my sources and data files go here)
ruby/
bin/
ruby
lib/
<somelib>.so
ruby/
1.8/
...
I'm setting LD_RUN_PATH to './ruby/lib', and then launching the Ruby
binary with the flags '-I./ruby/lib/ruby/1.8
-I./ruby/lib/ruby/1.8/i686-linux'. It finds the Ruby libraries and
shared object files just fine, but the <somelib>.so is not being
picked up.
Any ideas?