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

Posted daixh

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装iamp模块,编译报错configure: error: Cannot find imap library (libc-client.a). Please check your c-client相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

编译安装php服务报错问题:configure: error: Cannot find libmysqlclient under /usr.

PHP编译安装报错:configure: error: mcrypt.h not found. Please reinstall libmcrypt

解决mysql跟php不在同一台机器上,编译安装php服务报错问题:configure: error: Cannot find MySQL header files under /applicatio

Centos编译nginx

解决configure: error: Popt libraries is required简单报错笔记!

解决php编译报错configure: error: mcrypt.h not found. Please reinstall libmcrypt.