解决:error: Cannot find libmysqlclient_r under /usr/local/mysql.
libodb-mysql-2.4.0.tar.gz
解压完安装libodb-mysql时,执行完./cofigure后,出现如下错误:
checking for libmysqlclient_r... no
configure: error: libmysqlclient_r is not found; consider using CPPFLAGS/LDFLAGS to specify its location
查找到 libmysqlclient.so 所在的位置,我的安装位置为:
/usr/lib/x86_64-linux-gnu
将其软连接为libmysqlclient_r.so即可。
ln -s libmysqlclient.so.20.3.10 libmysqlclient_r.so