Skip to content

Instantly share code, notes, and snippets.

@madwork
Last active December 14, 2015 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madwork/5154412 to your computer and use it in GitHub Desktop.
Save madwork/5154412 to your computer and use it in GitHub Desktop.
Max OS X 10.8 + chruby + Ruby 2.0
brew install chruby readline openssl libyaml
brew link openssl --force
export ARCHFLAGS="-arch x86_64"
export CFLAGS="-g -O2"
export LDFLAGS="-L/usr/local/lib -L/usr/local/opt/readline/lib"
export CPPFLAGS="-I/usr/local/include -I/usr/local/opt/readline/include"
mkdir ~/.rubies
wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p353.tar.gz
echo '465afc77d201b5815bb7ce3660a1f5a131f4429a3fa483c126ce66923e4726cc ruby-2.0.0-p353.tar.gz' > ruby-2.0.0-p353.tar.gz.sha256
shasum -c ruby-2.0.0-p353.tar.gz.sha256
tar zxvf ruby-2.0.0-p353.tar.gz
cd ruby-2.0.0-p353
./configure --disable-install-doc --enable-shared --prefix=$HOME/.rubies/ruby-2.0.0-p353
make
make install
chruby ruby-2.0.0-p353
ruby -v
gem install pry pry-doc awesome_print
gem install bundler --pre
bundle config --global jobs 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment