Skip to content

Instantly share code, notes, and snippets.

@rodreegez
Created February 14, 2010 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rodreegez/304112 to your computer and use it in GitHub Desktop.
Save rodreegez/304112 to your computer and use it in GitHub Desktop.
$ gem sources -a http://gems.whatever.com
$ sudo mkdir -p /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:
$ mysql_install_db --basedir=/usr/local/Cellar/mysql/5.1.41
$ launchctl load -w /usr/local/Cellar/mysql/5.1.41/com.mysql.mysqld.plist
$ (ok, so launching Mysql on startup doesn't quite seem to work with homebrew)
$ export ARCHFLAGS="-arch i386 -arch x86_64"
$ gem install mysql -- --with-mysql-dir=/usr/local--with-mysql-config=/usr/local/bin/mysql_config
$ sudo gem install gemcutter bundler
$ brew install git
$ ssh-keygen -t rsa -C "you@your-domain.com"
$ cat ~/.ssh/id_rsa.pub | pbcopy
$ Add (or edit) a public key in your GitHub account (https://github.com/account)
$ git config --global user.name "Your Name"
$ git config --global user.email "you@your-domain.com"
$ curl -O http://gemcutter-production.s3.amazonaws.com/rubygems/rubygems-1.3.5.tgz
$ tar xzvf rubygems-1.3.5.tgz
$ cd rubygems-1.3.5
$ sudo ruby setup.rb
$ sudo gem update
$ rm -rf rubygems-1.3.5.tgz
$ rm -rf rubygems-1.3.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment