Installing Ruby 1.9.3 using RVM in Lion

Notes


  1. To install readline without using any package managers. Follow this link
  2. XCode must be installed after the GCC and Command line tools are installed.

STEP 1

Uninstall XCode. Drag the Xcode from applications folder to the trash.

STEP 2

Install GCC 10.7-v2 dmg

STEP 3

Install command line tools for Lion. Command Line Tools (Lion).mpkg

STEP 4

brew install automake

STEP 5

brew install readline

STEP 6

brew link readline

STEP 7

brew install libxml2

STEP 8

brew link libxml2

STEP 9

Add :

export ARCHFLAGS="-arch x86_64" 

to ~/.bash_profile

STEP 10

rvm install 1.9.2 -C --with-readline-dir=/usr/local/Cellar/readline/6.2.4/ --with-libxml2-dir=/usr/local/Cellar/libxml2/2.8.0

References:

How to Install XCode, Homebrew, Git, rvm, Ruby on Mac
OSX GCC Installer


Related Articles


Ace the Technical Interview

  • Easily find the gaps in your knowledge
  • Get customized lessons based on where you are
  • Take consistent action everyday
  • Builtin accountability to keep you on track
  • You will solve bigger problems over time
  • Get the job of your dreams

Take the 30 Day Coding Skills Challenge

Gain confidence to attend the interview

No spam ever. Unsubscribe anytime.