Installing Xcode (Easy installed from the app store and then added the command line utilities)
Install HomeBrew This was easy but the link he gives is broken ... from their home page I did the following
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"Installing mysql
brew install mysqlI can now run mysql.server start to manually start mysql ... I understand this can be automated but I don't want mysql running all of the time as I'm not doing rails development all that often.
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" \
-datadir=/usr/local/var/mysql --tmpdir=/tmp
Install rbenv and ruby-build (easy just like the instructions)
brew install rbenvalso added eval "$(rbenv init -) to the .bash_profile as sugessted
brew install ruby-build
Install pow
I had never used this before but it rocks!
curl get.pow.cx | sh
Install Ruby
great! this is why I was following this in the first place but when I tried to run
rbenv install 1.9.3-p0 I had no luck you get a long error message explaining that you need gcc not apples watered down version to install anything earlier than p125 ... well I'm not picky I tried to run
rbenv install 1.9.3-p385 (I got the version from running benv install -l) but this too threw and error
error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
return t->num_entries;
After googling the error I found this explaining that there was a problem but you could ignore it. A user named uasi seemed to indicate that you could have the error ignored by setting the cflags environment variable so the following command worked for me
CFLAGS="-Wno-error=shorten-64-to-32" rbenv install 1.9.3-p385
After that you can continue to follow his excellent instructions .