>> I have problem installing Ruby on a UNIX platform. I wonder if anyone can
>> help me in that. I tried to install version 1.6.8 and 1.8.0 and both have
>> problems. Let me go through what I did: 1- Downloaded the compressed file.
>> 2- FTP it to workstation which is HP-UX 10 3- Uncompress 4- Untar 5-
>> Configure to build the Makefile 6- When I start compiling the source code in
>> 1.6.8 I got error "(Bundled) cc: "error.c", line 434: error 1705: Function
>> prototypes are an ANSI feature." and in 1.8.0 there is a list of errors as
>> you'll see below.
> 
> You need to use the ANSI flags for cc (-Aa).  Alternatively you could use
> the ansic compiler that typically is in HPUX under /opt/ansic.
> 
> You can accomplish this with CFLAGS="-Aa" configure.
> 
> I use gcc to compile ruby for HPUX 11 (32 and 64 bit).  configure gets a
> decent set of flags by default.  HPUX 10 is pretty old so that's probably
> why configuring with cc doesn't work out of the box.

I used cc on HPUX 11 for ruby 1.8.0, which is a bit more compatible: it
does *not* need -Aa or -Ae; the ./configure file tests somewhere what to
use and -Ae is in the list of possibilities (and "-Aa -D_HPUX_SOURCE" as
well, iirc). If you're willing, dig through config.log to find out why it
didn't get there or doesn't apply it.

Good luck!
Kero