1 安装
> ./configure --with-mysql-includes=/usr/local/mysql/include --with-mysql-libs=/usr/local/mysql/lib
> make
> make install
2 运行时如报错;
dyld: Library not loaded: libmysqlclient.18.dylib
解决如下:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
原文地址:http://www.cnblogs.com/thrillerz/p/4008246.html