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

**URL:** <https://www.ruby-forum.com/t/error-compiling-ruby-under-aix-5-3-with-gcc-during-the-make-phase/136572>\
**Category:** Ruby\
**Created:** [May 3, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/error-compiling-ruby-under-aix-5-3-with-gcc-during-the-make-phase/136572 "2008-05-03T20:21:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [May 3, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/error-compiling-ruby-under-aix-5-3-with-gcc-during-the-make-phase/136572/1 "2008-05-03T20:21:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [May 3, 2008, 8:37pm UTC](https://www.ruby-forum.com/t/error-compiling-ruby-under-aix-5-3-with-gcc-during-the-make-phase/136572/2 "2008-05-03T20:37:58Z")

</div>

On Sat, May 3, 2008 at 1:20 PM, Victor R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> ```
> 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.

---

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [May 3, 2008, 9:31pm UTC](https://www.ruby-forum.com/t/error-compiling-ruby-under-aix-5-3-with-gcc-during-the-make-phase/136572/3 "2008-05-03T21:31:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [May 3, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/error-compiling-ruby-under-aix-5-3-with-gcc-during-the-make-phase/136572/4 "2008-05-03T23:49:32Z")

</div>

On Sat, May 3, 2008 at 2:30 PM, Victor R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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

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

[http://www.ibm.com/developerworks/aix/library/au-gnu.html](http://www.ibm.com/developerworks/aix/library/au-gnu.html)

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