Search path for 'nested' .so files

Actually, I think it’s libruby.so saying that it can’t find
./Dumstr.so. After all, if libruby didn’t run it wouldn’t read your
ruby file.

So, that was my first interpretation of the error message, but it
does seem to be the case that Dumstr.so is being found and a call
within Dumstr to libruby.so is causing the error. My first evidence:

% mv Dumstr.so HIDE.Dumstr.so
% ruby167 dumstr.rb
dumstr.rb:3:in `require’: No such file to load – Dumstr (LoadError)
from dumstr.rb:3

Second evidence, relink Dumstr.so without -lruby:

% make --makefile=Makefile.1.6.7
gcc -shared -L/fs37/home.directory.6/jgray/pkgs/ruby/ruby-1.6.7/lib
-o Dumstr.so dumstr.o rb_dumstr.o -lc

% ruby167 dumstr.rb
dumstr.rb:3:in `require’: libgcc_s.so.1: cannot open shared object file: No
such file or directory - ./Dumstr.so (LoadError)
from dumstr.rb:3

  • jeff

What do you get when you run ldd against Dumstr.so?

···

On Thursday 25 July 2002 06:26 pm, Gray, Jeff wrote:

So, that was my first interpretation of the error message, but it
does seem to be the case that Dumstr.so is being found and a call
within Dumstr to libruby.so is causing the error.


Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE