Skip to content

Instantly share code, notes, and snippets.

@nordringrayhide
Created April 9, 2012 09:50
Show Gist options
  • Save nordringrayhide/2342600 to your computer and use it in GitHub Desktop.
Save nordringrayhide/2342600 to your computer and use it in GitHub Desktop.
intall RVM 1.10.3, Ruby 1.8.7, 1.9.2, 1.9.3 for working with Pow & curl with SSL support at OSx Lion && XCode 4.3 command tools
#NOTE it should be applied after rvm-install.sh before rvm-post-install.sh running
#http://jfire.io/blog/2012/03/02/xcode-4-dot-3-homebrew-and-ruby/
vi /path/to/rvm/scripts/fetch
# -k key has been added for SSL certificate checking disable
66 fetch_command="curl -k -f -L --create-dirs -C - " # -s for silent
#!/bin/bash
# mkdir -p /usr/share/curl
# curl http://curl.haxx.se/ca/cacert.pem > /usr/share/curl/curl-ca-bundle.crt
# export CURL_CA_BUNDLE=/usr/share/curl/curl-ca-bundle.crt
which rvm && rvm implode
echo "Installing rvm"
# curl -s -k -B https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer > /tmp/install_rvm
# bash /tmp/install_rvm --version 1.9.2
# bash /tmp/install_rvm --version 1.10.3
# bash /tmp/install_rvm --version 1.11.7
# rm /tmp/install_rvm
# curl -L get.rvm.io | bash -s stable # v1.11.7
curl -L get.rvm.io | bash -s -- --version 1.10.3
echo "Activate rvm"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
type rvm | head -1
#!/bin/bash
echo "Activate rvm"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
type rvm | head -1
echo "bundler" >> ~/.rvm/gemsets/default.gems
echo "rak" >> ~/.rvm/gemsets/default.gems
echo "powder" >> ~/.rvm/gemsets/default.gems
echo "launchy" >> ~/.rvm/gemsets/default.gems
echo "bundler" >> ~/.rvm/gemsets/global.gems
echo "rak" >> ~/.rvm/gemsets/global.gems
echo "powder" >> ~/.rvm/gemsets/global.gems
echo "launchy" >> ~/.rvm/gemsets/global.gems
rvm pkg install iconv
rvm pkg install readline
rvm install 1.8.7 --force --with-gcc=gcc-4.2 --with-iconv-dir=$HOME/.rvm/usr
rvm use 1.8.7
rvm rubygems 1.3.7
# rvm install 1.9.2-p290 --force --with-gcc=gcc-4.2 --with-iconv-dir=$HOME/.rvm/usr
rvm install 1.9.2-p318 --force --with-gcc=gcc-4.2 --with-iconv-dir=$HOME/.rvm/usr
rvm rubygems 1.8.21
rvm install 1.9.3
rvm rubygems 1.8.21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment