VPS侦探论坛

 找回密码
 注册
查看: 4464|回复: 1

升级到5.3.26的php,使用官方的方法无法安装imap组件?

[复制链接]
发表于 2013-10-7 19:19:07 | 显示全部楼层 |阅读模式

centos:因为卡在fdm那里,所以升级了php 5.3.26才能使用php,后来安装军哥的方法安装了imap。https://bbs.vpser.net/thread-1557-1-1.html,可是一到.configure那里就显示找不到imap库,不知如何解决,求前辈指教。
操作Log:

[root@AY131005193752399800Z /]# yum -y install libc-client-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Setting up Install Process
Package libc-client-devel-2007e-11.el6.x86_64 already installed and latest version
Nothing to do
[root@AY131005193752399800Z /]# cd /root/lnmp1.0-full/php-5.3.26/ext/imap
[root@AY131005193752399800Z imap]# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
[root@AY131005193752399800Z imap]# ./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-imap-ssl
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for IMAP support... yes, shared
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE...
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... yes
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.
[root@AY131005193752399800Z imap]# make && make install
make: *** No targets specified and no makefile found.  Stop.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-10-7 20:22:36 | 显示全部楼层

已自行解决,方法:



一:centos 64位安装lnmp  1.0 ,php5.3.16版本, 却卡在starting php-fpm。先强制断开连接,再连接上之后、
方法:用自带的php升级sh 升级php
运行
cd lnmp1.0-full
./upgrade_php.sh
输入5.3.26回车
耐心等待。。
安装完就可以了
二:安装结束后,发现没有imap组件,于是安装官方方法(https://bbs.vpser.net/thread-1557-1-1.html
)安装,发现报错:

configure: error: Cannot find
imap
library (libc-client.a). Please check your c-client installation.

观察了各路方法,最后顿悟:

要先做两个连接,一个

ln -s /usr/lib64/libkrb5.so /usr/lib/libkrb5.so
另一个:
ln -s /usr/lib64/libc-client.so /usr/lib/
libc-client.so



之后再安装官方的方法执行就好了。

./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-
imap
-ssl
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-15 18:14 , Processed in 0.025316 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表