Error compiling ruby under AIX 5.3 with GCC during the make phase

Team,

I was trying to compile ruby 1.8.6-p114 under AIX 5.3 with gcc version
4.2.0.
During the make phase I received the following error:

.....
rbconfig.rb updated
compiling Win32API
compiling bigdecimal
        mkdir -p ../../.ext/powerpc-aix5.3.0.0
        gcc -I. -I../.. -I../../. -I../.././ext/bigdecimal -g -O2 -c
bigdecimal.c
        gcc -shared -o ../../.ext/powerpc-aix5.3.0.0/bigdecimal.so
bigdecimal.o -L"." -L"../.." -L. -Wl,-brtl -Wl,-G -eInit_bigdecimal -ldl
-lcrypt -lm -lc
collect2: library libgcc_s not found
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.

Can anyone help resolve this error?

Thank you

Victor

I haven't used AIX yet, but here's the clue. You need to install the
gcc_s package.

···

On Sat, May 3, 2008 at 1:20 PM, Victor Reyes <victor.reyes@gmail.com> wrote:

Team,

I was trying to compile ruby 1.8.6-p114 under AIX 5.3 with gcc version
4.2.0.
During the make phase I received the following error:

.....
rbconfig.rb updated
compiling Win32API
compiling bigdecimal
        mkdir -p ../../.ext/powerpc-aix5.3.0.0
        gcc -I. -I../.. -I../../. -I../.././ext/bigdecimal -g -O2 -c
bigdecimal.c
        gcc -shared -o ../../.ext/powerpc-aix5.3.0.0/bigdecimal.so
bigdecimal.o -L"." -L"../.." -L. -Wl,-brtl -Wl,-G -eInit_bigdecimal -ldl
-lcrypt -lm -lc
collect2: library libgcc_s not found

--
Gerardo Santana

Gerardo, thank you for the info. However, I am having heck of a time
searching for that library, to download it and install it. Google has
hundreds of hits but no URL to download, as far as I can see.
Would you happen to know where I can get it?

Thank you

Victor

···

On 5/3/08, Gerardo Santana Gómez Garrido <gerardo.santana@gmail.com> wrote:

On Sat, May 3, 2008 at 1:20 PM, Victor Reyes <victor.reyes@gmail.com> > wrote:
> Team,
>
> I was trying to compile ruby 1.8.6-p114 under AIX 5.3 with gcc version
> 4.2.0.
> During the make phase I received the following error:
>
> .....
> rbconfig.rb updated
> compiling Win32API
> compiling bigdecimal
> mkdir -p ../../.ext/powerpc-aix5.3.0.0
> gcc -I. -I../.. -I../../. -I../.././ext/bigdecimal -g -O2 -c
> bigdecimal.c
> gcc -shared -o ../../.ext/powerpc-aix5.3.0.0/bigdecimal.so
> bigdecimal.o -L"." -L"../.." -L. -Wl,-brtl -Wl,-G -eInit_bigdecimal
-ldl
> -lcrypt -lm -lc
> collect2: library libgcc_s not found

I haven't used AIX yet, but here's the clue. You need to install the
gcc_s package.

--

Gerardo Santana

Well, I'm not an AIX user, but Google told me about this link:

where you can find how to install GCC on AIX. There's even a link to a
pre-built binary.

···

On Sat, May 3, 2008 at 2:30 PM, Victor Reyes <victor.reyes@gmail.com> wrote:

Gerardo, thank you for the info. However, I am having heck of a time
searching for that library, to download it and install it. Google has
hundreds of hits but no URL to download, as far as I can see.
Would you happen to know where I can get it?

Thank you

Victor

--
Gerardo Santana