From: "Brett H. Williams" Date: 2003-08-06T23:22:42+09:00 Subject: Re: Ruby installation problem on UNIX On Aug 6, Ihab Mentiady wrote: > Hi; > > 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.