Skip to content

Instantly share code, notes, and snippets.

@madwork
Last active Aug 29, 2015
Embed
What would you like to do?
Max OS X 10.9 + chruby + Ruby 2.1.1
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