Skip to content

Instantly share code, notes, and snippets.

@gwik
Forked from mitnick78/gist:5901312
Last active December 19, 2015 04:59
Show Gist options
  • Save gwik/5901360 to your computer and use it in GitHub Desktop.
Save gwik/5901360 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
curl -LO 'rubygems'
tar
rbenv exec ruby ./setup.rb
rbenv exec gem install bundler --no-rdoc --no-ri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment