Problems with extensions, RHEL4, $LOAD_PATH

D

Daniel Berger

Ruby 1.8.5
RHEL 4, x86-64
gcc 3.4.5
make 3.80

Something very strange is happening here. The bigdecimal.so file =
clearly exists:

[ djberge@lxomp55e /usr/local/lib/ruby ] $ pwd
/usr/local/lib/ruby
[ djberge@lxomp55e /usr/local/lib/ruby ] $ find . -name 'bigdecimal.so'
/1.8/x86_64-linux/bigdecimal.so

Yet Ruby can't find it:

djberge@some_host /usr/local/lib/ruby/site_ruby/1.8 ] $ irb
irb(main):001:0> require 'bigdecimal'
LoadError: no such file to load -- bigdecimal
from (irb):1:in `require'
from (irb):1


Even though it's in my $LOAD_PATH:

irb(main):002:0> $:
=3D> ["/usr/local/lib/ruby/site_ruby/1.8",=20
"/usr/local/lib/ruby/site_ruby/1.8/x86_64-linux",=20
"/usr/local/lib/ruby/site_ruby", "/usr/local/lib/ruby/1.8",=20
"/usr/local/lib/ruby/1.8/x86_64-linux", "."]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

What's going on?

Thanks,

Dan

PS - Works fine if I install it in the sitelibdir


This communication is the property of Qwest and may contain confidential =
or
privileged information. Unauthorized use of this communication is =
strictly=20
prohibited and may be unlawful. If you have received this communication =

in error, please immediately notify the sender by reply e-mail and =
destroy=20
all copies of the communication and any attachments.
 
A

ara.t.howard

Ruby 1.8.5
RHEL 4, x86-64
gcc 3.4.5
make 3.80

Something very strange is happening here. The bigdecimal.so file clearly
exists:

[ djberge@lxomp55e /usr/local/lib/ruby ] $ pwd
/usr/local/lib/ruby
[ djberge@lxomp55e /usr/local/lib/ruby ] $ find . -name 'bigdecimal.so'
./1.8/x86_64-linux/bigdecimal.so

Yet Ruby can't find it:

djberge@some_host /usr/local/lib/ruby/site_ruby/1.8 ] $ irb
irb(main):001:0> require 'bigdecimal'
LoadError: no such file to load -- bigdecimal
from (irb):1:in `require'
from (irb):1


which -a irb

??

-a
 
D

Daniel Berger

On Fri, 8 Sep 2006, Daniel Berger wrote:
=20
Ruby 1.8.5
RHEL 4, x86-64
gcc 3.4.5
make 3.80

Something very strange is happening here. The bigdecimal.so file=20
clearly exists:

[ djberge@lxomp55e /usr/local/lib/ruby ] $ pwd
/usr/local/lib/ruby
[ djberge@lxomp55e /usr/local/lib/ruby ] $ find . -name = 'bigdecimal.so'
./1.8/x86_64-linux/bigdecimal.so

Yet Ruby can't find it:

djberge@some_host /usr/local/lib/ruby/site_ruby/1.8 ] $ irb
irb(main):001:0> require 'bigdecimal'
LoadError: no such file to load -- bigdecimal
from (irb):1:in `require'
from (irb):1
=20
=20
which -a irb
=20
??
=20
-a

/usr/local/bin/irb

irb(main):002:0> RUBY_VERSION
=3D> "1.8.5"

I did notice that autoconf wasn't installed originally. So, I installed =

autoconf (2.59), did a 'make clean' and reinstalled. Still no luck.

Regards,

Dan


This communication is the property of Qwest and may contain confidential =
or
privileged information. Unauthorized use of this communication is =
strictly=20
prohibited and may be unlawful. If you have received this communication =

in error, please immediately notify the sender by reply e-mail and =
destroy=20
all copies of the communication and any attachments.
 
A

ara.t.howard

Ruby 1.8.5
RHEL 4, x86-64
gcc 3.4.5
make 3.80

Something very strange is happening here. The bigdecimal.so file clearly
exists:

[ djberge@lxomp55e /usr/local/lib/ruby ] $ pwd
/usr/local/lib/ruby
[ djberge@lxomp55e /usr/local/lib/ruby ] $ find . -name 'bigdecimal.so'
./1.8/x86_64-linux/bigdecimal.so

Yet Ruby can't find it:

djberge@some_host /usr/local/lib/ruby/site_ruby/1.8 ] $ irb
irb(main):001:0> require 'bigdecimal'
LoadError: no such file to load -- bigdecimal
from (irb):1:in `require'
from (irb):1


which -a irb

??

-a

/usr/local/bin/irb

irb(main):002:0> RUBY_VERSION
=> "1.8.5"

oh well. i was hoping you were picking up an old one ;-)
I did notice that autoconf wasn't installed originally. So, I installed
autoconf (2.59), did a 'make clean' and reinstalled. Still no luck.

hmmm. no idea, but does either of these give any leads?

/usr/local/bin/ruby -r /usr/local/lib/ruby/1.8/x86_64-linux/bigdecimal.so -e 42

LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/ruby -r /usr/local/lib/ruby/1.8/x86_64-linux/bigdecimal.so -e 42

/usr/local/bin/ruby -r yaml -r rbconfig -e' y Config::CONFIG ' | less

grasping at straws...


btw. i can compile 1.8.5 on a rhel4 box later today and give you a report.


-a
 
D

Daniel Berger

On Fri, 8 Sep 2006, Daniel Berger wrote:
=20
On Fri, 8 Sep 2006, Daniel Berger wrote:

Ruby 1.8.5
RHEL 4, x86-64
gcc 3.4.5
make 3.80

Something very strange is happening here. The bigdecimal.so file=20
clearly exists:

[ djberge@lxomp55e /usr/local/lib/ruby ] $ pwd
/usr/local/lib/ruby
[ djberge@lxomp55e /usr/local/lib/ruby ] $ find . -name = 'bigdecimal.so'
./1.8/x86_64-linux/bigdecimal.so

Yet Ruby can't find it:

djberge@some_host /usr/local/lib/ruby/site_ruby/1.8 ] $ irb
irb(main):001:0> require 'bigdecimal'
LoadError: no such file to load -- bigdecimal
from (irb):1:in `require'
from (irb):1


which -a irb

??

-a

/usr/local/bin/irb

irb(main):002:0> RUBY_VERSION
=3D> "1.8.5"
=20
oh well. i was hoping you were picking up an old one ;-)
=20
I did notice that autoconf wasn't installed originally. So, I = installed
autoconf (2.59), did a 'make clean' and reinstalled. Still no luck.
=20
hmmm. no idea, but does either of these give any leads?
=20
/usr/local/bin/ruby -r=20
/usr/local/lib/ruby/1.8/x86_64-linux/bigdecimal.so -e 42
=20
LD_LIBRARY_PATH=3D/usr/local/lib /usr/local/bin/ruby -r=20
/usr/local/lib/ruby/1.8/x86_64-linux/bigdecimal.so -e 42
=20
/usr/local/bin/ruby -r yaml -r rbconfig -e' y Config::CONFIG ' | = less
=20
grasping at straws...
=20
=20
btw. i can compile 1.8.5 on a rhel4 box later today and give you a = report.
=20
=20
-a

GAH! Stupid sudo umask settings!

It was a permissions issue. Disregard.

Thanks,

Dan


This communication is the property of Qwest and may contain confidential =
or
privileged information. Unauthorized use of this communication is =
strictly=20
prohibited and may be unlawful. If you have received this communication =

in error, please immediately notify the sender by reply e-mail and =
destroy=20
all copies of the communication and any attachments.
 

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,969
Messages
2,570,161
Members
46,709
Latest member
AustinMudi

Latest Threads

Top