# Problems with extensions, RHEL4, $LOAD\_PATH

**URL:** <https://www.ruby-forum.com/t/problems-with-extensions-rhel4-load-path/68019>\
**Category:** Ruby\
**Created:** [September 8, 2006, 4:12pm UTC](https://www.ruby-forum.com/t/problems-with-extensions-rhel4-load-path/68019 "2006-09-08T16:12:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@danielb](https://www.ruby-forum.com/u/danielb)\
**Post date:** [September 8, 2006, 4:12pm UTC](https://www.ruby-forum.com/t/problems-with-extensions-rhel4-load-path/68019/1 "2006-09-08T16:12:18Z")

</div>

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\> $:  
=\> ["/usr/local/lib/ruby/site\_ruby/1.8",  
“/usr/local/lib/ruby/site\_ruby/1.8/x86\_64-linux”,  
“/usr/local/lib/ruby/site\_ruby”, “/usr/local/lib/ruby/1.8”,  
“/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  
prohibited and may be unlawful. If you have received this communication  
in error, please immediately notify the sender by reply e-mail and  
destroy  
all copies of the communication and any attachments.

---

<div class="post-metadata">

**Author:** ![danielb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@danielb](https://www.ruby-forum.com/u/danielb)\
**Post date:** [September 8, 2006, 4:20pm UTC](https://www.ruby-forum.com/t/problems-with-extensions-rhel4-load-path/68019/2 "2006-09-08T16:20:19Z")

</div>

On Fri, 8 Sep 2006, Daniel B. wrote:

> [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

---

<div class="post-metadata">

**Author:** ![danielb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@danielb](https://www.ruby-forum.com/u/danielb)\
**Post date:** [September 8, 2006, 4:32pm UTC](https://www.ruby-forum.com/t/problems-with-extensions-rhel4-load-path/68019/3 "2006-09-08T16:32:20Z")

</div>

removed\_email\_address@domain.invalid wrote:

> > [djberge@lxomp55e /usr/local/lib/ruby] $ pwd  
> > from (irb):1
> 
> which -a irb
> 
> ??
> 
> -a

/usr/local/bin/irb

irb(main):002:0\> RUBY\_VERSION  
=\> “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  
prohibited and may be unlawful. If you have received this communication  
in error, please immediately notify the sender by reply e-mail and  
destroy  
all copies of the communication and any attachments.

---

<div class="post-metadata">

**Author:** ![danielb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@danielb](https://www.ruby-forum.com/u/danielb)\
**Post date:** [September 8, 2006, 4:44pm UTC](https://www.ruby-forum.com/t/problems-with-extensions-rhel4-load-path/68019/4 "2006-09-08T16:44:21Z")

</div>

On Fri, 8 Sep 2006, Daniel B. wrote:

> > > ```
> > > from (irb):1:in `require'
> > > 
> > > ```
> 
> 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

---

<div class="post-metadata">

**Author:** ![danielb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@danielb](https://www.ruby-forum.com/u/danielb)\
**Post date:** [September 8, 2006, 7:00pm UTC](https://www.ruby-forum.com/t/problems-with-extensions-rhel4-load-path/68019/5 "2006-09-08T19:00:40Z")

</div>

removed\_email\_address@domain.invalid wrote:

> > > > Something very strange is happening here. The bigdecimal.so file  
> > > > irb(main):001:0\> require ‘bigdecimal’
> 
> hmmm. no idea, but does either of these give any leads?
> 
> btw. i can compile 1.8.5 on a rhel4 box later today and give you a report.
> 
> -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  
prohibited and may be unlawful. If you have received this communication  
in error, please immediately notify the sender by reply e-mail and  
destroy  
all copies of the communication and any attachments.
