Avatar of opike
opike
 asked on

Issue installing Ruby 1.9.2 on CentOS 5.8

I'm trying to install Ruby 1.9.2 on CentOS 5.8. I've used yum to install 'Development Tools' and readline-devel. I then download the ruby tar file and unzipped it. But when I try to do a:
./configure
I get the following error message:
[ollie@devdataload ruby-1.9.2-p0]$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/ollie/ruby/ruby-1.9.2-p0':
configure: error: C compiler cannot create executables
See `config.log' for more details.

I've also attached the config.log.
config.log
LinuxCRuby

Avatar of undefined
Last Comment
opike

8/22/2022 - Mon
farzanj

Try:
yum install ruby

Open in new window

opike

ASKER
That tries to install 1.8.5. I need to install 1.9.2.
farzanj

You don't seem to have gcc installed on your system.

Check if it is there.

rpm -qa | grep gcc

Open in new window


If it is not, you will have to have it

yum install gcc

Open in new window

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
maeltar

If you really want to "roll your own" Ruby you'll need the dev tools...

yum groupinstall 'Development Tools'

Open in new window

ASKER CERTIFIED SOLUTION
opike

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
opike

ASKER
Went with a different OS.