Install Ree-1.8.7 with Rvm on Mountain Lion

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.

  1. Remove Xcode.
  2. From here I downloaded the package for Mountain Lion.
  3. Install downloaded osx-gcc-installer.
  4. Install Xcode (and command-line tools).

That is all.



Related Topics



Leave a reply



Submit