Ruby on Rails compile mysql gem

I ran into this little problem of compiling mysql gem on a centOS box and thought I would share this.

NOTE: updated January 2010
If you don't have the mySQL development libraries installed then you might want to install them.
apt-get install libmysqlclient*-dev
Make sure you have the DEV libraries installed on the linux box and then run this command
gem install mysql --no-rdoc --no-ri -- --with-mysql-config=/usr/bin/mysql_config
It work for me on CentOS 5.3 just today.


Popular posts from this blog

Console over SSH (ONTAP)

Brocade Zone Setup

vFoglight Purge Stale Objects (Groovy Script)