Forum: Ruby Ruby Compilation

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
088e78d40006187e80b633fbf070bf6c?d=identicon&s=25 Reji Kumar (rejikumarrv)
on 2008-11-11 14:24
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.
088e78d40006187e80b633fbf070bf6c?d=identicon&s=25 Reji Kumar (rejikumarrv)
on 2008-11-11 14:27
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.
437efd3a583e6272c045ad282a2b6867?d=identicon&s=25 R. Rubisher (rubisher)
on 2008-11-15 17:43
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/>
(sorry, I don't have time to test right now but I know it includes a
patch related to threads).

Hth,
    r.
This topic is locked and can not be replied to.