Link to home
Start Free TrialLog in
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
Avatar of farzanj
farzanj
Flag of Canada image

Try:
yum install ruby

Open in new window

Avatar of opike
opike

ASKER

That tries to install 1.8.5. I need to install 1.9.2.
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

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
Avatar of opike
opike

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of opike

ASKER

Went with a different OS.