gem install mysql fail
The program 'mysql_config' is currently not installed. You can install it by typing:
$ sudo apt-get install libmysqlclient-dev
$ bundle install
bundle show [mysql2] # To find the location.
I had the same issue in Cent OS, but got it resolved by installing mysql-devel
yum install mysql mysql-server mysql-devel
Try this:
gem install mysql -- --with-mysql-config=/usr/local/mysql-5.1.56-osx10.6-x86/bin/mysql_config
(Note the extra dashes)
If that doesn't work, I highly recommend going with the homebrew installation mentioned above of MySQL. You can read about a soup-to-nuts installation here: Uninstall Ruby on Rails on Mac OS X 10.6