# Building ruby on AIX 5.3

**URL:** <https://www.ruby-forum.com/t/building-ruby-on-aix-5-3/180099>\
**Category:** Ruby\
**Created:** [December 11, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/building-ruby-on-aix-5-3/180099 "2009-12-11T16:00:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbaibich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@rbaibich](https://www.ruby-forum.com/u/rbaibich)\
**Post date:** [December 11, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/building-ruby-on-aix-5-3/180099/1 "2009-12-11T16:00:42Z")

</div>

Hello,

I’m trying to build ruby 1.9.1 p376 on a AIX platform using pWares’s gcc  
but this is the error I’m getting:

checking for size\_t… yes  
checking size of size\_t… configure: error: in  
`/tmp/Packages_for_Management/ruby-1.9.1-p376': configure: error: cannot compute sizeof (size_t) See`config.log’ for more details.

Any help will be appreciated.

Roberto.

---

<div class="post-metadata">

**Author:** ![rbaibich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@rbaibich](https://www.ruby-forum.com/u/rbaibich)\
**Post date:** [December 11, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/building-ruby-on-aix-5-3/180099/2 "2009-12-11T17:15:38Z")

</div>

On Fri, Dec 11, 2009 at 8:53 AM,  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello,
> 
> I’m trying to build ruby 1.9.1 p376 on a AIX platform using pWares’s gcc  
> but this is the error I’m getting:
> 
> checking for size\_t… yes  
> checking size of size\_t… configure: error: in  
> `/tmp/Packages_for_Management/ruby-1.9.1-p376': configure: error: cannot compute sizeof (size_t) See `config.log’ for more details.

Could you please paste the config.log in either a github gist or a  
pastie and give us the link?  
Thanks.

Andrew McElroy

---

<div class="post-metadata">

**Author:** ![rbaibich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@rbaibich](https://www.ruby-forum.com/u/rbaibich)\
**Post date:** [December 11, 2009, 5:29pm UTC](https://www.ruby-forum.com/t/building-ruby-on-aix-5-3/180099/3 "2009-12-11T17:29:06Z")

</div>

Andrew,

Here it is the URL on github:

[http://github.com/bouzafr/ruby/blob/master/config.log](http://github.com/bouzafr/ruby/blob/master/config.log)

Thank you.

Roberto.

andrew mcelroy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
12/11/2009 11:15 AM  
Please respond to  
removed\_email\_address@domain.invalid

To  
removed\_email\_address@domain.invalid (ruby-talk ML)  
cc

Subject  
Re: Building ruby on AIX 5.3

On Fri, Dec 11, 2009 at 8:53 AM,  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello,
> 
> I’m trying to build ruby 1.9.1 p376 on a AIX platform using pWares’s gcc  
> but this is the error I’m getting:
> 
> checking for size\_t… yes  
> checking size of size\_t… configure: error: in  
> `/tmp/Packages_for_Management/ruby-1.9.1-p376': configure: error: cannot compute sizeof (size_t) See `config.log’ for more details.

Could you please paste the config.log in either a github gist or a  
pastie and give us the link?  
Thanks.

Andrew McElroy

---

<div class="post-metadata">

**Author:** ![rbaibich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@rbaibich](https://www.ruby-forum.com/u/rbaibich)\
**Post date:** [December 11, 2009, 7:20pm UTC](https://www.ruby-forum.com/t/building-ruby-on-aix-5-3/180099/4 "2009-12-11T19:20:52Z")

</div>

On Fri, Dec 11, 2009 at 10:28 AM,  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Andrew,
> 
> Here it is the URL on github:
> 
> [http://github.com/bouzafr/ruby/blob/master/config.log](http://github.com/bouzafr/ruby/blob/master/config.log)
> 
> Thank you.

Cool this will help figure it out.  
Does 1.9.1-p243 build and compile?

Andrew McElroy

---

<div class="post-metadata">

**Author:** ![rbaibich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@rbaibich](https://www.ruby-forum.com/u/rbaibich)\
**Post date:** [December 11, 2009, 7:29pm UTC](https://www.ruby-forum.com/t/building-ruby-on-aix-5-3/180099/5 "2009-12-11T19:29:39Z")

</div>

On Fri, Dec 11, 2009 at 12:13 PM, andrew mcelroy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Cool this will help figure it out.  
> Does 1.9.1-p243 build and compile?

I probably should have added this:  
ftp://ftp.ruby-lang.org/pub/ruby/1.9/

I am curious to know if ruby-1.9.2-preview1 compiles.

I am looking for an aix emulator now.  
I have access to a powerpc system.

Andrew McElroy

---

<div class="post-metadata">

**Author:** ![rbaibich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@rbaibich](https://www.ruby-forum.com/u/rbaibich)\
**Post date:** [December 11, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/building-ruby-on-aix-5-3/180099/6 "2009-12-11T19:33:10Z")

</div>

On Fri, Dec 11, 2009 at 12:21 PM, andrew mcelroy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > >
> 
> I have access to a powerpc system.

looking at the log, you didn’t have to show the hostname, but if its  
not a security concern to you then don’t worry about it.

This seems to be where the log goes south:  
g++: ‘-V’ option must have argument  
configure:3827: $? = 1  
configure:3816: g++ -qversion \>&5  
g++: unrecognized option ‘-qversion’  
g++: no input files  
configure:3827: $? = 1  
configure:3831: checking whether we are using the GNU C++ compiler  
configure:3850: g++ -c conftest.cpp \>&5  
configure:3850: $? = 0  
configure:3859: result: yes  
configure:3868: checking whether g++ accepts -g  
configure:3888: g++ -c -g conftest.cpp \>&5  
configure:3888: $? = 0  
configure:3929: result: yes  
configure:3958: checking how to run the C preprocessor  
configure:3989: gcc -E conftest.c  
configure:3989: $? = 0  
configure:4003: gcc -E conftest.c

specifically here on line 146:

conftest.c:10:28: error: ac\_nonexistent.h: No such file or directory

Make sure that you have ac\_nonexistent.h

It looks like these were your flags:  
configure --disable-shared --enable-threads=posix --prefix=/opt/pware  
–with-long-double-128 --with-mpfr=/opt/pware --with-gmp=/opt/pware

What happens if you don’t give it any flags.  
I would think that it would still fail, but this is an assumption.

Also, if you give it no flags, I am only advocating just doing the  
configure and make (not a make install)

Andrew McElroy

---

<div class="post-metadata">

**Author:** ![rbaibich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@rbaibich](https://www.ruby-forum.com/u/rbaibich)\
**Post date:** [December 11, 2009, 10:59pm UTC](https://www.ruby-forum.com/t/building-ruby-on-aix-5-3/180099/7 "2009-12-11T22:59:47Z")

</div>

Andrew,

Researching a lot about this, the guru guys from gcc made that  
ac\_nonexistent.h a real non existent header that it should fail when  
doing  
tests, if it doesn’t fail then something is wrong, weird but that is the  
way it is.

So reading more and more the config.log I found this:

collect2: library libm not found

Which is the first real error I found, doing more research I needed the  
basic lib math on the box. So I installed the bos.adt Math Library  
Package  
from AIX and voila!!! It configured and it’s compiling as well.

I hope this helps someone else in the future.

Thank to you and everyone else.

Roberto.

andrew mcelroy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
12/11/2009 01:29 PM  
Please respond to  
removed\_email\_address@domain.invalid

To  
removed\_email\_address@domain.invalid (ruby-talk ML)  
cc

Subject  
Re: Building ruby on AIX 5.3

On Fri, Dec 11, 2009 at 12:13 PM, andrew mcelroy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Cool this will help figure it out.  
> Does 1.9.1-p243 build and compile?

I probably should have added this:  
ftp://ftp.ruby-lang.org/pub/ruby/1.9/

I am curious to know if ruby-1.9.2-preview1 compiles.

I am looking for an aix emulator now.  
I have access to a powerpc system.

Andrew McElroy

> > On Fri, Dec 11, 2009 at 8:53 AM,  
> > [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> > 
> > > Hello,
> > > 
> > > I’m trying to build ruby 1.9.1 p376 on a AIX platform using pWares’s  
> > > gcc
