# Ruby Compilation

**URL:** <https://www.ruby-forum.com/t/ruby-compilation/153045>\
**Category:** Ruby\
**Created:** [November 11, 2008, 2:24pm UTC](https://www.ruby-forum.com/t/ruby-compilation/153045 "2008-11-11T14:24:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rejikumarrv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/77aa72/32.png) [@rejikumarrv](https://www.ruby-forum.com/u/rejikumarrv)\
**Post date:** [November 11, 2008, 2:24pm UTC](https://www.ruby-forum.com/t/ruby-compilation/153045/1 "2008-11-11T14:24:22Z")

</div>

## Hi, I am compiling Ruby on IBM AIX 5.3.0.0. Version of Ruby is 1.8.6. I am compiling ruby in 32 bit mode (OBJECT\_MODE=32). Commands I used are configure --with-gcc --prefix=$INSTALLPATH gmake && gmake install Configure and make are going fine. ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [powerpc-aix5.3.0.0] But when I try to load libraries, it is throwing error ruby -d -e ‘require “thread.so”’ Exception `LoadError’ at /disk1/home/local/RUBY//lib/ruby/1.8/powerpc-aix5.3.0.0/thread.so:0

```
          load failed - /disk1/home/local/RUBY//lib/ruby/1.8
          /powerpc-aix5.3.0.0/thread.so
       /disk1/home/local/RUBY//lib/ruby/1.8/powerpc-aix5.3.0.0/thread.so:
          load failed - /disk1/home/local/RUBY//lib/ruby/1.8
          /powerpc-aix5.3.0.0/thread.so (LoadError) from -e:1

```

irb also is throwing same error.  
both ruby & the library are 32 bit  
file /disk1/home/local/RUBY//bin/ruby  
/disk1/home/local/RUBY//bin/ruby: executable (RISC System/6000) or  
object module not stripped  
file /disk1/home/local/RUBY//lib/ruby/1.8/powerpc-aix5.3.0.0/thread.so  
/disk1/home/local/RUBY//lib/ruby/1.8/powerpc-aix5.3.0.0/thread.so:  
executable (RISC System/6000) or object module not stripped  
Is there anything else that can go wrong?  
Is it possible to get some more information on why the load has failed?  
ie to make ruby give more detailed error message, than a plain  
“LoadError” exception.  
Any help is appreciated. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![rejikumarrv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/77aa72/32.png) [@rejikumarrv](https://www.ruby-forum.com/u/rejikumarrv)\
**Post date:** [November 11, 2008, 2:27pm UTC](https://www.ruby-forum.com/t/ruby-compilation/153045/2 "2008-11-11T14:27:39Z")

</div>

One more thing, ruby or thread.so doesn’t have any unresolved  
dependencies. And the same error is being thrown for any other dynamic  
library like “zlib.so”, “socket.so” etc.

---

<div class="post-metadata">

**Author:** ![rejikumarrv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/77aa72/32.png) [@rejikumarrv](https://www.ruby-forum.com/u/rejikumarrv)\
**Post date:** [November 15, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/ruby-compilation/153045/3 "2008-11-15T17:43:09Z")

</div>

Reji Kumar wrote:

> ## Hi, I am compiling Ruby on IBM AIX 5.3.0.0. Version of Ruby is 1.8.6. I am compiling ruby in 32 bit mode (OBJECT\_MODE=32). Commands I used are configure --with-gcc --prefix=$INSTALLPATH gmake && gmake install Configure and make are going fine. ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [powerpc-aix5.3.0.0] But when I try to load libraries, it is throwing error ruby -d -e ‘require “thread.so”’ Exception `LoadError’ at /disk1/home/local/RUBY//lib/ruby/1.8/powerpc-aix5.3.0.0/thread.so:0
> 
> ```
> load failed - /disk1/home/local/RUBY//lib/ruby/1.8
> /powerpc-aix5.3.0.0/thread.so
> /disk1/home/local/RUBY//lib/ruby/1.8/powerpc-aix5.3.0.0/thread.so:
> load failed - /disk1/home/local/RUBY//lib/ruby/1.8
> /powerpc-aix5.3.0.0/thread.so (LoadError) from -e:1
> 
> ```
> 
> irb also is throwing same error.  
> both ruby & the library are 32 bit  
> file /disk1/home/local/RUBY//bin/ruby  
> /disk1/home/local/RUBY//bin/ruby: executable (RISC System/6000) or  
> object module not stripped  
> file /disk1/home/local/RUBY//lib/ruby/1.8/powerpc-aix5.3.0.0/thread.so  
> /disk1/home/local/RUBY//lib/ruby/1.8/powerpc-aix5.3.0.0/thread.so:  
> executable (RISC System/6000) or object module not stripped  
> Is there anything else that can go wrong?  
> Is it possible to get some more information on why the load has failed?  
> ie to make ruby give more detailed error message, than a plain  
> “LoadError” exception.  
> Any help is appreciated. Thanks in advance.

Hello Reji,

Don’t you try the pakage available at  
[http://gnome.bullfreeware.com/aixtoolbox/](http://gnome.bullfreeware.com/aixtoolbox/)  
(sorry, I don’t have time to test right now but I know it includes a  
patch related to threads).

Hth,  
r.
