Last active
January 1, 2016 16:49
-
-
Save madwork/8172990 to your computer and use it in GitHub Desktop.
Max OS X 10.8 + chruby + Ruby 2.1
This file contains 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
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 | |
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.gz | |
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 | |
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 | |
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz | |
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 | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment