Getting error when installing Nokogiri on Mac OS X for development

Do:

cd ~/discourse
source ~/.bashrc
bundle install
bundle exec rake db:migrate db:test:prepare db:seed_fu

Updated the OP to reflect the same.