Skip to content

Instantly share code, notes, and snippets.

@mitnick78
Created July 1, 2013 14:29
Show Gist options
  • Save mitnick78/5901312 to your computer and use it in GitHub Desktop.
Save mitnick78/5901312 to your computer and use it in GitHub Desktop.
sudo port install tk tcl readline apple-gcc42 openssl
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
cd ~/.rbenv && mkdir src && cd src
curl -LO 'ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz'
tar xvzf ruby-2.0.0-p247.tar.gz
cd ruby-2.0.0-p247
./configure --enable-shared --prefix=/Users/devweb/.rbenv/versions/2.0.0-p247 --with-opt-dir=/opt/local
make
make install
rbenv rehash
rbenv global 2.0.0-p247
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment