Created
November 30, 2011 09:07
-
-
Save knightq/1408479 to your computer and use it in GitHub Desktop.
RVM setup
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
# 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