10
votes

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.
5
Can we see what is in configure.log?Jeremy
MacBook-Air-de-Remy-Thellier:~ remythellier$ /Users/remythellier/.rvm/log/ruby-1.9.2-p0/configure.log -bash: /Users/remythellier/.rvm/log/ruby-1.9.2-p0/configure.log: Permission deniedRémy Thellier
In fact I don't really know how to open itRémy Thellier
why you don't have this read access ?shingara
use cat : cat /Users/remythellier/.rvm/log/ruby-1.9.2-p0/configure.logshingara

5 Answers

20
votes

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

5
votes

If you have just recently installed Xcode, like me, remember that you have to open it first, which starts the installation wizard.

** Also, make sure you specify the installation of command line tools, which, at least in my case, were not included by default. (key here is the C compiler) - inside of Xcode, go to preferences (cmd+,), Downloads, then install command line tools

2
votes

In addition to boulder_ruby's answer, I also had to update to the latest stable version of RVM in order to get the Ruby to install.

2
votes

This is probably a little late, but if you're having issues like I did, this article is a lifesaver. You don't just need to install XCode, but also the 'command line tools' which are located in Xcode's preferences:

http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/

1
votes

Steps I followed for upgrading ruby from 1.8.7 to 1.9.3 (mac osx 10.7)

  • Install RVM https://rvm.io/rvm/install/
  • Then download install xcode from appstore
  • Install command line tools from xcode - Go to xcode->preferences->downloads->components->commandline tools now run
  • 'sudo rvm install 1.9.3
  • rvm use 1.9.3