Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When trying to install Ruby 1.9.3 on Fedora 12, following "Complete Guide to install Ruby 1.9.3 on CentOS", I get the following error when running the command ./configure:

$ ./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 `/tmp/ruby-1.9.3-p194':
configure: error: C compiler cannot create executables
See `config.log' for more details

Here is the content of the config.log.

I tried running both as root and non-root. I have permissions in the directory where I try to install, and used yum to install the following packages:

httpd-devel
openssl-devel
zlib-devel
gcc
gcc-c++
curl-devel
expat-devel
gettext-devel
patch
readline
readline-devel
zlib
zlib-devel
libyaml-devel
libffi-devel
make
bzip2
zlib1g
mysql-server

and did yum groupinstall "Development tools"

share|improve this question
    
Why on earth are you trying to use such an old and unsupported distribution? –  Michael Hampton May 22 '13 at 3:36

1 Answer 1

One of the things that is curious are these lines in your log:

/usr/bin/ld: i386 architecture of input file `/usr/lib/gcc/x86_64-redhat-linux/4.6.3/../../../crt1.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/usr/lib/gcc/x86_64-redhat-linux/4.6.3/../../../crti.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/usr/lib/gcc/x86_64-redhat-linux/4.6.3/../../../crtn.o' is incompatible with i386:x86-64 output

It looks like you've got a mismatch between 32-bit and 64-bit code.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.