码迷,mamicode.com
首页 > 其他好文 > 详细

安装iamp模块,编译报错configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

时间:2019-07-05 00:05:05      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:usr   ann   php   ati   root   erb   通过   error   kerberos   

yum install libc-client-devel
cd /root/lnmp1.0-full/php-5.3.17/ext/imap
/usr/local/php/bin/phpize

./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-imap-ssl

执行./configure --with-php-config=/usr/local/php/bin/php-config
后提示
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

环境lnmp最新版本

updatedb
locate libc-client
locate 找到libc-client.so 位置后用ln -s 命令做个软连接到/usr/lib/
ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.a
ln -s /usr/lib64/libkrb5.so /usr/lib/libkrb5.so
./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-imap-ssl

make &&make install

编译通过!!

vi /usr/local/php/etc/php.ini
找到extension,在后面加一条:extension = "imap.so"

保存,重启 服务

安装iamp模块,编译报错configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

标签:usr   ann   php   ati   root   erb   通过   error   kerberos   

原文地址:https://www.cnblogs.com/daixh/p/11135551.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!