编译courier-authlib时出现的错误

 
./configure --with-redhat --with-authmysql=yes --with-mailuser=vmail\ --with-mailgroup=vmail --with-mysql-libs=/usr/local/mysql/lib/mysql\ --with-mysql-includes=/usr/local/mysql/include/mysql\
--prefix=/usr/local/authlib --without-stdheaderdir
make
make install
make install-configure
 
出现错误如下
checking for endpwent... yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking for getspent in -lshadow... no
checking for endspent... yes
checking for getspent... yes
checking for pg_config... no
checking for PQsetdbLogin... no
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_connect... no
checking for mysql_real_connect... no
configure: error: --with-authmysql specified but no mysqlclient.so
[root@zyxzy courier-authlib-0.59.3]#
 
我在编译mysql时也打了
 
echo "/usr/local/mysql/lib/mysql">>/etc/ld.so.conf
ldconfig
echo "export PATH=$PATH:/usr/local/mysql/bin">>/etc/profile
source /etc/profile
 
这2条命令 但还是出现这个错误
 
后来我google了一下
然后在打了 rpm -qa | mysql  命令才知道 原来我系统中有2个mysql.....
 
卸载了之后 就编译成功了
 
 
 
 

你可能感兴趣的:(mysql,问题,职场,休闲,courier-authlib)