0

Basically, when trying to install Ruby2.0 following these instructions: http://architects.dzone.com/articles/upgrading-ruby-20-mountain I've hit a brick wall.

On this step specifically: "rvm install 2.0.0"

I get the following error:

Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/usr/local/rvm/rubies/ruby-2.0.0-p195 --with-opt-dir=/opt/sm/pkg/active --disable-install-doc --without-tcl --without-tk --enable-shared',
please read /usr/local/rvm/log/ruby-2.0.0-p195/1370731952_configure.log
There has been an error while running configure. Halting the installation.

When following the command prompt instruction to read "/usr/local/rvm/log/ruby-2.0.0-p195/1370731952_configure.log"

configure.log file:

[2013-06-08 18:52:32] ./configure
current path: /usr/local/rvm/src/ruby-2.0.0-p195
command(9): env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/usr/local/rvm/rubies/ruby-2.0.0-p195 --with-opt-dir=/opt/sm/pkg/active --disable-install-doc --without-tcl --without-tk --enable-shared
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... x86_64-apple-darwin12.3.0
checking host system type... x86_64-apple-darwin12.3.0
checking target system type... x86_64-apple-darwin12.3.0
checking whether the C compiler works... no
configure: error: in `/usr/local/rvm/src/ruby-2.0.0-p195':
configure: error: C compiler cannot create executables
See `config.log' for more details

Please advise

Apane101
  • 1,121
  • 1
  • 14
  • 37

1 Answers1

1

Well, the key error message is configure: error: C compiler cannot create executables. Did you find and look at config.log (different than configure.log)? Double-check that you have installed not just Xcode but the command line tools as well.

Community
  • 1
  • 1
Old Pro
  • 24,624
  • 7
  • 58
  • 106
  • Thanks, I've just checked my XCode preferences/downloads and command line tools are listed as installed. So that isn't the issue in this case, not quite sure what is to be honest. Any help would be appreciated. – Apane101 Jun 09 '13 at 02:32
  • Did you find and look at config.log (different than configure.log)? What did it say? – Old Pro Jun 09 '13 at 03:17
  • Got it working - not sure how..but it works now heh. I'll accept your answer! – Apane101 Jun 09 '13 at 04:52