Skip to content

Instantly share code, notes, and snippets.

Last active Jan 1, 2016
What would you like to do?
Max OS X 10.8 + chruby + Ruby 2.1
brew install chruby readline openssl libyaml
export ARCHFLAGS="-arch x86_64"
export CFLAGS="-g -O2"
export LDFLAGS="-L/usr/local/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl/include"
mkdir ~/.rubies
# ruby 2.1.0
echo '3538ec1f6af96ed9deb04e0965274528162726cc9ba3625dcf23648df872d09d ruby-2.1.0.tar.gz' > ruby-2.1.0.tar.gz.sha256
shasum -c ruby-2.1.0.tar.gz.sha256
tar zxvf ruby-2.1.0.tar.gz
cd ruby-2.1.0
./configure --disable-install-doc --enable-shared --prefix=$HOME/.rubies/ruby-2.1.0
make install
chruby ruby-2.1.0
ruby -v
gem update --system
gem update
gem install bundler pry pry-doc awesome_print
bundle config --global jobs 7
# ruby 2.1.1
echo '96aabab4dd4a2e57dd0d28052650e6fcdc8f133fa8980d9b936814b1e93f6cfc ruby-2.1.1.tar.gz' > ruby-2.1.1.tar.gz.sha256
shasum -c ruby-2.1.1.tar.gz.sha256
tar zxvf ruby-2.1.1.tar.gz
cd ruby-2.1.1
./configure --disable-install-doc --enable-shared --prefix=$HOME/.rubies/ruby-2.1.1
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment