Ruby installation problem on UNIX

I

Ihab Mentiady

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.
I am now stopped at this point and can't continue the installation. Any
idea?
****************************************************************************
********************************** Ruby.1.6.8
****************************************************************************
********************************** wkpkh09u#make
cc -I. -I. -c array.c
cc -I. -I. -c bignum.c
cc -I. -I. -c class.c
cc -I. -I. -c compar.c
cc -I. -I. -c dir.c
cc -I. -I. -c dln.c
cc -I. -I. -c enum.c
cc -I. -I. -c error.c

(Bundled) cc: "error.c", line 434: error 1705: Function prototypes are an
ANSI feature. *** Error exit code 1
****************************************************************************
**********************************
****************************************************************************
********************************** Ruby 1.8.0
****************************************************************************
********************************** wkpkh09u#make
cc -g -DYYMAXDEPTH=300 -I. -I. -c array.c

(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C
product; ignored. cpp: "ruby.h", line 70: warning 2013: Unknown
preprocessing directive. (Bundled) cc: "ruby.h", line 524: warning 525:
Redeclaration of identifier "no". (Bundled) cc: "ruby.h", line 525: warning
525: Redeclaration of identifier "no". (Bundled) cc: "ruby.h", line 526:
warning 525: Redeclaration of identifier "no". (Bundled) cc: "ruby.h", line
527: warning 525: Redeclaration of identifier "no". (Bundled) cc: "ruby.h",
line 528: warning 525: Redeclaration of identifier "no". (Bundled) cc:
"ruby.h", line 529: warning 525: Redeclaration of identifier "no". (Bundled)
cc: "ruby.h", line 544: warning 525: Redeclaration of identifier "no".
(Bundled) cc: "st.h", line 36: error 1000: Unexpected symbol: "*". (Bundled)
cc: "st.h", line 36: error 1000: Unexpected symbol: "st_data_t". (Bundled)
cc: "st.h", line 37: error 1000: Unexpected symbol: "*". (Bundled) cc:
"st.h", line 37: error 1000: Unexpected symbol: "st_data_t". (Bundled) cc:
"st.h", line 37: error 1000: Unexpected symbol: "st_data_t". (Bundled) cc:
"st.h", line 38: error 1000: Unexpected symbol: "*". (Bundled) cc: "st.h",
line 39: error 1000: Unexpected symbol: "*". (Bundled) cc: "st.h", line 39:
error 1000: Unexpected symbol: "*". (Bundled) cc: "st.h", line 40: error
1000: Unexpected symbol: "*". (Bundled) cc: "st.h", line 40: error 1000:
Unexpected symbol: "st_data_t". (Bundled) cc: "st.h", line 41: error 1000:
Unexpected symbol: "*". (Bundled) cc: "st.h", line 42: error 1000:
Unexpected symbol: "*". (Bundled) cc: "st.h", line 43: error 1000:
Unexpected symbol: "*". (Bundled) cc: "st.h", line 44: error 1000:
Unexpected symbol: "*". (Bundled) cc: error 2017: Cannot recover from
earlier errors, terminating. *** Error exit code 1
Stop.
****************************************************************************
**********************************

Thanks
Ihab Mentiady, P.Eng.
Optical GNPS Supportability Development Prime
Nortel Networks Corporation
( Voice: +1 613 765-0745 (ESN 395-0745)
2 Fax: +1 613 763-7990 (ESN 393-7990)
* E-Mail: mailto:[email protected]
 
B

Brett H. Williams

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

Kero van Gelder

I have problem installing Ruby on a UNIX platform. I wonder if anyone can
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top