I had Ruby 1.9.3 running on Mac OS X Lion (I had to use RVM because normal home brew install didn’t work) and then installing Mountain Lion (or its subsequent update) has caused Ruby 1.9.3 to no longer be installed + all gems have been uninstalled and I’m back on Ruby 1.8.7
I have the latest XCode version (4.4.1) installed and I’ve tried multiple different suggestions from similar StackOverflow questions with no success.
What I want is a fresh start (if possible), I would like advice for how to completely uninstall any crap I’ve installed to do with Ruby and RVM and to start again! Then maybe I can get assistance with installing Ruby 1.9.3
But I can give you an idea of what I’m doing at the moment which is failing…
-
Executing
ruby -vresults inruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] -
Executing
rvm -vresults inrvm 1.15.7 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] -
Executing
brew upgrade rubyresults in: http://pastebin.com/KetSau7k -
Executing
rvm install 1.9.3results in: http://pastebin.com/8YKg4wXb – which when I then pressqto exit it continues to try and install and fails…
Installing Ruby from source to: /Users/markmcdonnell/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)…
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracted to /Users/markmcdonnell/.rvm/src/ruby-1.9.3-p194 (already extracted)
ruby-1.9.3-p194 - #configuring
Error running ' ./configure --prefix=/Users/markmcdonnell/.rvm/rubies/ruby-1.9.3-p194 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/markmcdonnell/.rvm/usr ', please read /Users/markmcdonnell/.rvm/log/ruby-1.9.3-p194/configure.log
There has been an error while running configure. Halting the installation.
- I’ve also tried
rvm install 1.9.3 --with-gcc=clangbut after an initial message you’ve seen already (where I pressqto quit the message and continue with an install) it then tells meYou requested building with 'clang' but it is not in your path.
There’s also a number of other things I’ve installed and commands I’ve executed to try and get this blasted Ruby 1.9.3 to install but none of it has worked – hence why I think I might need to start from scratch (if possible?).
Any help getting this installed (and a bit of a clean-up too) along with an explanation for someone who isn’t very Bash/CLI minded would be greatly appreciated!
Thanks.
The answer actually came from @kitcambridge (on twitter) he suggested that although I had the latest XCode downloaded I needed to open XCode and then into its preferences area and look for the ‘download’ tab where I could then download the ‘Command Line Tools’ which when installed fixed some of the issues such as missing libraries/links.
This worked for me. But if it didn’t then I think the next best solution would have been to try the Rails installer as suggested by @mpapis – although I don’t build Rail applications it still seemed like a good solution.