Getting Ruby 1.8.7 installed on Mountain Lion (10.8)
I just figured it out! Please reference this question on SO
rvm can no longer install 1.8.7-p352 on Mac OS X Mountain Lion
rvm reinstall 1.8.7 --without-tcl --without-tk
Alternatively, try this installation order if you have Homebrew.brew install tcl-tk
rvm reinstall 1.8.7
Mountain Lion rvm install 1.8.7 x11 error
Try to install X11 via http://xquartz.macosforge.org/landing/ set the correct path to the X11 library for the compiler with:
export CPPFLAGS=-I/opt/X11/include
then try to reinstall ruby, passing to the compiler where gcc-4.2 is:CC=/usr/local/bin/gcc-4.2 rvm reinstall 1.8.7
Without CC
I got a lot of segmentation faults. Mountain Lion rvm install 1.8.7 x11 error
Try to install X11 via http://xquartz.macosforge.org/landing/ set the correct path to the X11 library for the compiler with:
export CPPFLAGS=-I/opt/X11/include
then try to reinstall ruby, passing to the compiler where gcc-4.2 is:CC=/usr/local/bin/gcc-4.2 rvm reinstall 1.8.7
Without CC
I got a lot of segmentation faults. rvm can no longer install 1.8.7-p352 on Mac OS X Mountain Lion
it is problem in detecting tcl/tk by ruby 1.8.7, the solution is to disable it:
rvm reinstall 1.8.7 --without-tcl --without-tk
the other solution when tcl/tk is needed: https://stackoverflow.com/a/11666019/497756 How to install Ruby 1.8.7 on OS X 10.8 Mountain Lion
# Install homebrew
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
# Install command line tools for Xcode -- requires free Apple ID
http://developer.apple.com/downloads
# Install requirements
brew update
brew tap homebrew/dupes
brew install autoconf automake apple-gcc42 rbenv ruby-build
# rbenv method
CONFIGURE_OPTS="--without-tcl --without-tk" rbenv install 1.8.7-p370
# rvm method
rvm install 1.8.7 --without-tcl --without-tk
Can't install ruby 1.8.7 on Mac 10.8 via RVM
Ok, I found the solution.
- Remove Xcode.
- From here I downloaded the package for Mountain Lion.
- Install downloaded osx-gcc-installer.
- Install Xcode (and command-line tools).
Related Topics
Where Is Ruby's Erb Format "Officially" Defined
What Hash Function Does Ruby Use
Timeout When Installing Ruby Gems
Why Do Ruby People Say They Don't Need Interfaces
Reading Files in a Zip Archive, Without Unzipping The Archive
Filtering Sensitive Data with Vcr
What's an Example of Ruby Code That's "Too Clever"
How to Have Two Columns in One Table Point to The Same Column in Another with Activerecord
How to Handle 404 Not Found Errors in Nokogiri
Get Value from String Representing Local Variable
Ruby: Is It Acceptable to Put More Than One Class in a File
Is The Assignment Operator Really "Just" an Operator
Recommended Way to Generate a Presigned Url to S3 Bucket in Ruby