Monday, July 20, 2009

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.

No comments:

Post a Comment

Raspberry Pi Zero W - Wireless Configuation

create the file under "boot" folder wpa_supplicant.conf country=GB ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev u...