Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > compiling ruby on red hat linux

Reply
Thread Tools

compiling ruby on red hat linux

 
 
Philip J. Mikal
Guest
Posts: n/a
 
      09-08-2005
Hi,

I'm having no luck compiling Ruby - getting the
following error:

make[1]: Entering directory
`/usr/local/src/ruby/ext/iconv'
gcc -fPIC -g -O2 -I. -I../.. -I../../.
-I../.././ext/iconv -DICONV_INPTR_CAST=3D"(char **)" -c
iconv.c
gcc323: **): No such file or directory
iconv.c: In function `iconv_try':
iconv.c:246: parse error before "inptr"
make[1]: *** [iconv.o] Error 1
make[1]: Leaving directory
`/usr/local/src/ruby/ext/iconv'
make: *** [all] Error 1

Any ideas?

-Philip



 
Reply With Quote
 
 
 
 
Joe Van Dyk
Guest
Posts: n/a
 
      09-08-2005
Did you run the configure script?

On 9/8/05, Philip J. Mikal <(E-Mail Removed)> wrote:
> Hi,
>=20
> I'm having no luck compiling Ruby - getting the
> following error:
>=20
> make[1]: Entering directory
> `/usr/local/src/ruby/ext/iconv'
> gcc -fPIC -g -O2 -I. -I../.. -I../../.
> -I../.././ext/iconv -DICONV_INPTR_CAST=3D"(char **)" -c
> iconv.c
> gcc323: **): No such file or directory
> iconv.c: In function `iconv_try':
> iconv.c:246: parse error before "inptr"
> make[1]: *** [iconv.o] Error 1
> make[1]: Leaving directory
> `/usr/local/src/ruby/ext/iconv'
> make: *** [all] Error 1
>=20
> Any ideas?
>=20
> -Philip
>=20
>=20
>



 
Reply With Quote
 
 
 
 
Philip J. Mikal
Guest
Posts: n/a
 
      09-08-2005
Yes!

--- Joe Van Dyk <(E-Mail Removed)> wrote:

> Did you run the configure script?
>=20
> On 9/8/05, Philip J. Mikal <(E-Mail Removed)>
> wrote:
> > Hi,
> >=20
> > I'm having no luck compiling Ruby - getting the
> > following error:
> >=20
> > make[1]: Entering directory
> > `/usr/local/src/ruby/ext/iconv'
> > gcc -fPIC -g -O2 -I. -I../.. -I../../.
> > -I../.././ext/iconv -DICONV_INPTR_CAST=3D"(char **)"

> -c
> > iconv.c
> > gcc323: **): No such file or directory
> > iconv.c: In function `iconv_try':
> > iconv.c:246: parse error before "inptr"
> > make[1]: *** [iconv.o] Error 1
> > make[1]: Leaving directory
> > `/usr/local/src/ruby/ext/iconv'
> > make: *** [all] Error 1
> >=20
> > Any ideas?
> >=20
> > -Philip
> >=20
> >=20
> >

>=20
>=20




 
Reply With Quote
 
Ara.T.Howard
Guest
Posts: n/a
 
      09-08-2005
On Fri, 9 Sep 2005, Philip J. Mikal wrote:

> Hi,
>
> I'm having no luck compiling Ruby - getting the
> following error:
>
> make[1]: Entering directory
> `/usr/local/src/ruby/ext/iconv'
> gcc -fPIC -g -O2 -I. -I../.. -I../../.
> -I../.././ext/iconv -DICONV_INPTR_CAST="(char **)" -c
> iconv.c
> gcc323: **): No such file or directory
> iconv.c: In function `iconv_try':
> iconv.c:246: parse error before "inptr"
> make[1]: *** [iconv.o] Error 1
> make[1]: Leaving directory
> `/usr/local/src/ruby/ext/iconv'
> make: *** [all] Error 1
>
> Any ideas?
>
> -Philip


~ > tar xvfz ruby.tgz
~ > cd ruby/
~ > export prefix=/full/path/to/where/you/want/to/install # eg. /usr/local/
~ > export LD_RUN_PATH=$prefix
~ > export LD_LIBRARY_PATH=$prefix
~ > ./configure --prefix=$prefix && make && sudo make install

hth.

-a
--
================================================== =============================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| Your life dwells amoung the causes of death
| Like a lamp standing in a strong breeze. --Nagarjuna
================================================== =============================



 
Reply With Quote
 
Philip J. Mikal
Guest
Posts: n/a
 
      09-08-2005
Thanks for the suggestion, but same results as before:

compiling iconv
make[1]: Entering directory
`/usr/local/src/ruby-1.8.2/ext/iconv'
gcc -fPIC -g -O2 -I. -I../.. -I../../.
-I../.././ext/iconv -DICONV_INPTR_CAST=3D"(char **)" -c
iconv.c
gcc323: **): No such file or directory
iconv.c: In function `iconv_try':
iconv.c:231: parse error before "inptr"
make[1]: *** [iconv.o] Error 1
make[1]: Leaving directory
`/usr/local/src/ruby-1.8.2/ext/iconv'
make: *** [all] Error 1
[root@misha-server2 ruby-1.8.2]#=20


--- "Ara.T.Howard" <(E-Mail Removed)> wrote:

> ~ > tar xvfz ruby.tgz
> ~ > cd ruby/
> ~ > export
> prefix=3D/full/path/to/where/you/want/to/install #
> eg. /usr/local/
> ~ > export LD_RUN_PATH=3D$prefix
> ~ > export LD_LIBRARY_PATH=3D$prefix
> ~ > ./configure --prefix=3D$prefix && make && sudo
> make install
>=20
> hth.
>=20
> -a
> --=20





 
Reply With Quote
 
speechexpert
Guest
Posts: n/a
 
      09-08-2005
I am interested in writing a debugger that single-steps, highlights lines,
displays variables, etc.

Any Recommendations for a GUI to work in? Should be simple, I hope. Rails?

JB




 
Reply With Quote
 
Curt Hibbs
Guest
Posts: n/a
 
      09-09-2005
------=_Part_2164_29055417.1126224329111
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On 9/8/05, speechexpert <(E-Mail Removed)> wrote:
>=20
> I am interested in writing a debugger that single-steps, highlights lines=

,
> displays variables, etc.
>=20
> Any Recommendations for a GUI to work in? Should be simple, I hope. Rails=

?
>=20
> There is already one in FreeRIDE (http://freeride.rubyforge.org/), perhap=

s=20
you could contribute to improving it instead of starting from scratch. It=
=20
uses the FXRuby/FOX GUI library.

Curt

------=_Part_2164_29055417.1126224329111--


 
Reply With Quote
 
nobu.nokada@softhome.net
Guest
Posts: n/a
 
      09-09-2005
Hi,

At Fri, 9 Sep 2005 04:25:29 +0900,
Philip J. Mikal wrote in [ruby-talk:155369]:
> I'm having no luck compiling Ruby - getting the
> following error:


It works for me, with gcc 3.4.2 on Redhat.

> make[1]: Entering directory
> `/usr/local/src/ruby/ext/iconv'
> gcc -fPIC -g -O2 -I. -I../.. -I../../.
> -I../.././ext/iconv -DICONV_INPTR_CAST="(char **)" -c
> iconv.c
> gcc323: **): No such file or directory


What's this gcc323? Why does it differ from the command called
by make?

--
Nobu Nakada


 
Reply With Quote
 
Philip J. Mikal
Guest
Posts: n/a
 
      09-09-2005
Hi Nobu,

It looks like my gcc is bombing out on:

-DICONV_INPTR_CAST=3D"(char **)"

Any ideas?

Thanks,

Philip

--- http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:

> Hi,
>=20
> At Fri, 9 Sep 2005 04:25:29 +0900,
> Philip J. Mikal wrote in [ruby-talk:155369]:
> > I'm having no luck compiling Ruby - getting the
> > following error:

>=20
> It works for me, with gcc 3.4.2 on Redhat.
>=20
> > make[1]: Entering directory
> > `/usr/local/src/ruby/ext/iconv'
> > gcc -fPIC -g -O2 -I. -I../.. -I../../.
> > -I../.././ext/iconv -DICONV_INPTR_CAST=3D"(char **)"

> -c
> > iconv.c
> > gcc323: **): No such file or directory

>=20
> What's this gcc323? Why does it differ from the
> command called
> by make?
>=20
> --=20
> Nobu Nakada
>=20
>=20




 
Reply With Quote
 
nobu.nokada@softhome.net
Guest
Posts: n/a
 
      09-09-2005
Hi,

At Fri, 9 Sep 2005 11:12:52 +0900,
Philip J. Mikal wrote in [ruby-talk:155397]:
> It looks like my gcc is bombing out on:
>
> -DICONV_INPTR_CAST="(char **)"


What is `your gcc'? Maybe a wrapper script?
Try:

type -a gcc
file `type -p gcc`

--
Nobu Nakada


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RED HAT LINUX vs LINUX SUSE SIP3261 VOIP 2 08-17-2004 10:32 PM
RED HAT LINUX VS LINUX SUSE SIP3261 VOIP 0 08-17-2004 12:50 PM
Suse Linux and Red Hat Linux Raymond A+ Certification 3 07-16-2004 12:41 AM
Red Hat Defines end of Red Hat Linux steve NZ Computing 14 11-06-2003 06:19 AM
RPMs of Ruby 1.8.0 preview 5 for Red Hat Linux 9 Ian Macdonald Ruby 0 07-29-2003 05:04 AM



Advertisments