Skip to content

Instantly share code, notes, and snippets.

@knightq
Created November 30, 2011 09:07
Show Gist options
  • Save knightq/1408479 to your computer and use it in GitHub Desktop.
Save knightq/1408479 to your computer and use it in GitHub Desktop.
RVM setup
# Install from scratch
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
# Update
rvm get head
# Install openssl
rvm pkg install openssl #(older format - rvm package install openssl)
# Install iconv
rvm pkg install iconv # (older format - rvm package install iconv)
# In case of problem, try to install without autoreconf
rvm --skip-autoreconf pkg install iconv
# Install ruby version
# Mountain Lion only
export CPPFLAGS=-I/opt/X11/include
CC=/usr/local/bin/gcc-4.2 rvm install <ver> -C --with-openssl-dir=$HOME/.rvm/usr,--with-iconv-dir=$HOME/.rvm/usr --with-libyaml-dir=/usr/local
# Non Mountain Lion
rvm install <ver> -C --with-openssl-dir=$HOME/.rvm/usr,--with-iconv-dir=$HOME/.rvm/usr --with-libyaml-dir=/usr/local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment