Last active
August 29, 2015 14:00
-
-
Save madwork/11407223 to your computer and use it in GitHub Desktop.
Max OS X 10.9 + chruby + Ruby 2.1.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 wget chruby openssl libyaml libxml2 | |
# https://github.com/sstephenson/ruby-build/issues/550#issuecomment-40863879 | |
cd /usr/local | |
git checkout 0181c8a Library/Formula/readline.rb | |
brew install readline | |
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.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 | |
chruby ruby-2.1.1 | |
ruby -v | |
gem update --system | |
gem update | |
gem install bundler pry pry-doc awesome_print | |
bundle config --global jobs 7 # http://robots.thoughtbot.com/parallel-gem-installing-using-bundler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment