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
时间: 2024-10-07 18:00:21