Skip to content

Instantly share code, notes, and snippets.

@GarstgerUnhold
Forked from rkh/brew.sh
Created March 22, 2010 09:36
Show Gist options
  • Save GarstgerUnhold/339911 to your computer and use it in GitHub Desktop.
Save GarstgerUnhold/339911 to your computer and use it in GitHub Desktop.
sudo mkdir /usr/local
sudo chown -R `whoami` /usr/local
curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local
brew install mysql
export ARCHFLAGS="-arch x86_64"
launchctl load /usr/local/Cellar/mysql/*/com.mysql.mysqld.plis
mysql_install_db
launchctl start com.mysql.mysqld
rvm ree,1.8.6,1.8.7,1.9.1,1.9.2,rbx-head gem install mysql -- --with-mysql-dir=/usr/local --with-mysql-config=/usr/local/bin/mysql_config
brew install postgresql
export ARCHFLAGS="-arch x86_64"
initdb /usr/local/var/postgres
launchctl load -w /usr/local/Cellar/postgresql/*/org.postgresql.postgres.plist
rvm ree,1.8.6,1.8.7,1.9.1,1.9.2,rbx-head gem install postgres
mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ && git clone --depth 1 git://github.com/wayneeseguin/rvm.git && cd rvm && ./install
echo 'if [[ -s $rvm_path/scripts/rvm ]] ; then source $rvm_path/scripts/rvm ; fi' >> ~/.bashrc
source ~/.rvm/scripts/rvm
rvm package install iconv
rvm install ree,1.8.6,1.8.7,1.9.1,1.9.2,rbx-head,jruby,macruby,ironruby,maglev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment