当configure中设置 --with-mysql=/usr/local/mysql时:
出错
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.查看config.log:有如下错误/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: warning: libXpm.so.4, needed by /usr/lib/libgd.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: warning: libX11.so.6, needed by /usr/lib/libgd.so, not found (try using -rpath or -rpath-link)
/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'