Skip to content

Instantly share code, notes, and snippets.

@bryanbibat
Created January 18, 2013 17:11
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanbibat/4566200 to your computer and use it in GitHub Desktop.
Save bryanbibat/4566200 to your computer and use it in GitHub Desktop.
Upgrading Ruby cheatsheet (*nix)
RVM
$ rvm get head
$ rvm upgrade 1.9.3-p362 1.9.3-p374
(if it's not downloading binaries, using an rvm_make_flags like "-j3" can speed things up. see https://rvm.io/workflow/rvmrc/)
rbenv with ruby-build
$ cd ~/.rbenv/plugins/ruby-build
$ git pull
$ rbenv install 1.9.3-p374 MAKE_OPTS="-j3"
$ rbenv rehash
then update all your ".ruby-version"s and install/run bundler
ruby from source
$ wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p374.tar.bz2
$ tar -jxvf ruby-1.9.3-p374.tar.bz2
$ cd ruby-1.9.3-p374
$ ./configure --enable-shared --disable-install-doc
$ make -j3
$ sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment