mac安装rails问题
gem install mysql2
brew install mysql
gem install mysql2
http://stackoverflow.com/questions/12811489/installing-mysql2-gem-rails-on-mac
gem install pg
- Make sure you have Xcode installed first.
- Run:
brew install postgresql
- Add to your GemFile:
gem 'pg'
- Run:
bundle install
http://stackoverflow.com/questions/18196054/gem-install-pg-on-mac-10-7-5