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
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).
That is all.
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
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.
Related Topics
Rails with Paypal Permissions and Paypal Express Checkout
Invalid Multibyte Char (Utf-8) Error, Ruby
Error Installing Debugger-Linecache in Ruby 1.9.3
How to Call Java API from Ruby 1.8 or 1.9
How to Authorize a Service Account for Google Calendar API in Ruby
Troubleshooting Ssl Certificates, Ruby, MAC Os X Yosemite
How to Fetch Linkedin User Data
Ruby Shoes Gui: Continually Updating Paragraphs
Why Does This Nokogiri Xpath Have a Null Return
Mailer Unable to Access Reset_Token in User Model
How to Use Ruby's Readlines.Grep for Utf-16 Files
All Ruby Tests Raising: Undefined Method 'Authenticate' for Nil:Nilclass
How to Create a Copy of Some Columns of a CSV File in Ruby with Different Data in One Column
Good Cucumber Examples in the Wild
Rails 3/Ruby: Activerecord Find Method in Condition Array to Parameters Single Quote Issue
Ruby: How to Load a File into Interactive Ruby Console (Irb)