解决rails2.2.2不能连接mysql 数据库驱动问题
gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
gem install mysql --no-rdoc --no-ri \
-- --with-mysql-include=/usr/local/mysql/include \
--with-mysql-lib=/usr/local/mysql/lib \
--with-mysql-config=/usr/local/mysql/bin/mysql_config
"/usr/local/mysql/lib" to /etc/ld.so.conf and ran ldconfig
修改 /etc/ld.so.conf
, 加入include /opt/mysql/lib
gem install mysql -- --with-mysql-lib=/opt/mysql/lib/mysql --with-mysql-include=/opt/mysql/include/mysql/