|
Posted by Balaji D Loganathan on November 11th, 2011
brew install mysql Is you have installed mysql server already and have a failed mysql gem, then remove the mysql server first [ see] Do this to install mysql system tables: mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp Install mysql gem: sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-dir=/usr/local/Cellar/mysql --with-mysql-lib=/usr/local/Cellar/mysql/5.5.15/lib/ --with-mysql-include=/usr/local/mysql/5.5.15/include --with-mysql-config=/usr/local/Cellar/mysql/5.5.15/bin/mysql_config To find out what your machine is. use uname -a Tags: Distributed Agile, gem, Rails, Ruby, Ruby on RailsUnique Views: 1036 Total views: 1300 Follow responses at RSS 2.0. Leave a response | Trackback. One Response to “Ruby Tips 11: Install mysql gem on Mac OS X Lion”Leave a Reply |
The simplest option is to go for mysql2 gem.