1

Anyone have an idea as to what this error means? I'm attempting to install Ruby 1.9.3

Error running ' ./configure --prefix=/Users/coreycallahan/.rvm/rubies/ruby-1.9.3-p125 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/coreycallahan/.rvm/usr ', please read /Users/coreycallahan/.rvm/log/ruby-1.9.3-p125/configure.log
There has been an error while running configure. Halting the installation.

$ cat /Users/coreycallahan/.rvm/log/ruby-1.9.3-p125/configure.log

[2012-04-10 11:10:33]  ./configure --prefix=/Users/coreycallahan/.rvm/rubies/ruby-1.9.3-p125 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/coreycallahan/.rvm/usr 
configure: WARNING: unrecognized options: --with-libyaml
checking build system type... i386-apple-darwin11.3.0
checking host system type... i386-apple-darwin11.3.0
checking target system type... i386-apple-darwin11.3.0
checking whether the C compiler works... no
configure: error: in `/Users/coreycallahan/.rvm/src/ruby-1.9.3-p125':
configure: error: C compiler cannot create executables
See `config.log' for more details
the Tin Man
  • 158,662
  • 42
  • 215
  • 303
  • What operating system are you using? – Charles Caldwell Apr 10 '12 at 15:34
  • Mac OS X Lion 10.7.3 (11D50d) – coreycallahan Apr 10 '12 at 15:38
  • you should probably do `cat /Users/coreycallahan/.rvm/log/ruby-1.9.3-p125/configure.log` and print that output into the question as well. Or, `cat /Users/coreycallahan/.rvm/log/ruby-1.9.3-p125/configure.log|pbcopy` and it will save you having to copy it. – Sandro Apr 10 '12 at 15:47
  • 2
    Try looking at [this](http://stackoverflow.com/questions/8032824/cant-install-ruby-under-lion-with-rvm-gcc-issues) – Mike Z Apr 10 '12 at 16:02
  • Try to look here: http://stackoverflow.com/questions/6134745/configure-error-c-compiler-cannot-create-executables-in-mac-os-terminal – ExiRe Apr 10 '12 at 20:29

1 Answers1

0
configure: error: C compiler cannot create executables

Do you have permission to write in the directory where you're compiling?

theglauber
  • 28,367
  • 7
  • 29
  • 47