# Compiling Ruby-1.8.5 on AIX-5.3

**URL:** <https://www.ruby-forum.com/t/compiling-ruby-1-8-5-on-aix-5-3/67626>\
**Category:** Ruby\
**Created:** [September 5, 2006, 8:12pm UTC](https://www.ruby-forum.com/t/compiling-ruby-1-8-5-on-aix-5-3/67626 "2006-09-05T20:12:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mehdi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d07c76/32.png) [@mehdi](https://www.ruby-forum.com/u/mehdi)\
**Post date:** [September 5, 2006, 8:12pm UTC](https://www.ruby-forum.com/t/compiling-ruby-1-8-5-on-aix-5-3/67626/1 "2006-09-05T20:12:17Z")

</div>

Hi,  
I tried compiling ruby-1.8.5 on AIX5.3 and everytime it fails saying  
“unable to compute size of rlim\_t” during the configure command. I was  
wondering if anybody was able to compile ruby on AIX5.3 and have its  
binaries

The following is a part of config.log

configure:12857: checking for intrinsics.h  
configure:12865: result: no  
configure:12879: checking for rlim\_t  
configure:12924: gcc -c -g -O2 conftest.c \>&5  
configure:12930: $? = 0  
configure:12937: test -z “$ac\_c\_werror\_flag” || test ! -s conftest.err  
configure:12940: $? = 0  
configure:12947: test -s conftest.o  
configure:12950: $? = 0  
configure:12962: result: yes  
configure:12965: checking size of rlim\_t  
configure:13443: gcc -o conftest -g -O2 conftest.c -lm \>&5  
collect2: library libm not found  
configure:13446: $? = 1  
configure: program exited with status 1  
configure: failed program was:  
| /\* confdefs.h. \*/  
| #define PACKAGE\_NAME “”  
| #define PACKAGE\_TARNAME “”  
| #define PACKAGE\_VERSION “”  
| #define PACKAGE\_STRING “”  
| #define PACKAGE\_BUGREPORT “”  
| #define OLD\_YACC 1  
| #define \_ALL\_SOURCE 1  
| #define STDC\_HEADERS 1  
| #define HAVE\_SYS\_TYPES\_H 1  
| #define HAVE\_SYS\_STAT\_H 1  
| #define HAVE\_STDLIB\_H 1  
| #define HAVE\_STRING\_H 1  
| #define HAVE\_MEMORY\_H 1  
| #define HAVE\_STRINGS\_H 1  
| #define HAVE\_INTTYPES\_H 1  
| #define HAVE\_STDINT\_H 1

---

<div class="post-metadata">

**Author:** ![mehdi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d07c76/32.png) [@mehdi](https://www.ruby-forum.com/u/mehdi)\
**Post date:** [September 7, 2006, 1:01am UTC](https://www.ruby-forum.com/t/compiling-ruby-1-8-5-on-aix-5-3/67626/2 "2006-09-07T01:01:20Z")

</div>

Hello Mehdi,

> configure:13443: gcc -o conftest -g -O2 conftest.c -lm \>&5  
> collect2: library libm not found  
> It seems that you have not yet installed bos.adt.libm.  
> Please install the package and try again.  
> I was able to compile ruby 1.8.5 on AIX 5.3 with these parameters for  
> configure:  
> ./configure --prefix=$HOME/tools --disable-ipv6

Best reagards,

---

<div class="post-metadata">

**Author:** ![mehdi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d07c76/32.png) [@mehdi](https://www.ruby-forum.com/u/mehdi)\
**Post date:** [September 8, 2006, 11:11pm UTC](https://www.ruby-forum.com/t/compiling-ruby-1-8-5-on-aix-5-3/67626/3 "2006-09-08T23:11:09Z")

</div>

Thanks, I was able to compile it. If anybody needs teh binaries you  
can email me.  
Mohammed Mehdi
