Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue installing Ruby by rvm (error while running configure)

Tags:

ruby

rvm

This is what I have, did anyone has an idea to make it configuring correctly ?

MacBook-Air-de-Remy-Thellier:~ remythellier$ rvm install 1.9.2
/Users/remythellier/.rvm/rubies/ruby-1.9.2-p0, this may take a while depending on your cpu(s)...

ruby-1.9.2-p0 - #fetching 
ruby-1.9.2-p0 - #extracted to /Users/remythellier/.rvm/src/ruby-1.9.2-p0 (already extracted)
ruby-1.9.2-p0 - #configuring 
Error running './configure --prefix=/Users/remythellier/.rvm/rubies/ruby-1.9.2-p0 --enable-shared  ', please read /Users/remythellier/.rvm/log/ruby-1.9.2-p0/configure.log
There has been an error while running configure. Halting the installation.
like image 579
Rémy Thellier Avatar asked Dec 23 '10 10:12

Rémy Thellier


1 Answers

Install XCode from your OSX cd. That will give you gcc and everything you need to compile the rubies you want to install.

edit

Mountain Lion no longer ships gcc with XCode, you have to explicitly install it from Preferences -> Downloads -> "Install Command Line Tools" as @boulder_ruby mentioned

like image 65
brad Avatar answered Oct 21 '22 04:10

brad