-
-
Save gwik/5901360 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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