windme 发表于 2011-12-4 23:19:50

军哥,关于centosX64位中安装IMAP错误的问题请教

执行./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最新版本
已经成功执行yum install libc-client-devel
是否是因为X64位的问题,请问具体怎么做

licess 发表于 2011-12-5 08:28:29

updatedb
locate libc-client
locate 找到libc-client 位置后用ln -s 命令做个软连接到/usr/lib/

windme 发表于 2011-12-6 08:48:42

locate libc-client
/usr/lib/libc-client.a
/usr/lib64/libc-client.so
/usr/lib64/libc-client.so.2007
/usr/share/doc/libc-client-2007e
/usr/share/doc/libc-client-2007e/IPv6.txt
/usr/share/doc/libc-client-2007e/LICENSE.txt
/usr/share/doc/libc-client-2007e/NOTICE
/usr/share/doc/libc-client-2007e/RELNOTES
/usr/share/doc/libc-client-2007e/SUPPORT
/usr/share/doc/libc-client-2007e/bugs.txt
/usr/share/doc/libc-client-2007e/calendar.txt
/usr/share/doc/libc-client-2007e/commndmt.txt
/usr/share/doc/libc-client-2007e/drivers.txt
/usr/share/doc/libc-client-2007e/formats.txt
/usr/share/doc/libc-client-2007e/imaprc.txt
/usr/share/doc/libc-client-2007e/internal.txt
/usr/share/doc/libc-client-2007e/locking.txt
/usr/share/doc/libc-client-2007e/md5.txt
/usr/share/doc/libc-client-2007e/mixfmt.txt
/usr/share/doc/libc-client-2007e/naming.txt
/var/cache/yum/x86_64/6/epel/packages/libc-client2007-2007e-14.el5.x86_64.rpm
/var/lib/yum/yumdb/l/65d024b4dacfa7ee40f813cee9baff18cc2af889-libc-client-2007e-11.el6-x86_64
/var/lib/yum/yumdb/l/bdcb4f2101ce4faa01fd089f77bf6f2963aa91c9-libc-client-devel-2007e-11.el6-x86_64
/var/lib/yum/yumdb/l/65d024b4dacfa7ee40f813cee9baff18cc2af889-libc-client-2007e-11.el6-x86_64/checksum_data
/var/lib/yum/yumdb/l/65d024b4dacfa7ee40f813cee9baff18cc2af889-libc-client-2007e-11.el6-x86_64/checksum_type
/var/lib/yum/yumdb/l/65d024b4dacfa7ee40f813cee9baff18cc2af889-libc-client-2007e-11.el6-x86_64/command_line
/var/lib/yum/yumdb/l/65d024b4dacfa7ee40f813cee9baff18cc2af889-libc-client-2007e-11.el6-x86_64/from_repo
/var/lib/yum/yumdb/l/65d024b4dacfa7ee40f813cee9baff18cc2af889-libc-client-2007e-11.el6-x86_64/from_repo_revision
/var/lib/yum/yumdb/l/65d024b4dacfa7ee40f813cee9baff18cc2af889-libc-client-2007e-11.el6-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/l/65d024b4dacfa7ee40f813cee9baff18cc2af889-libc-client-2007e-11.el6-x86_64/reason
/var/lib/yum/yumdb/l/65d024b4dacfa7ee40f813cee9baff18cc2af889-libc-client-2007e-11.el6-x86_64/releasever
/var/lib/yum/yumdb/l/bdcb4f2101ce4faa01fd089f77bf6f2963aa91c9-libc-client-devel-2007e-11.el6-x86_64/checksum_data
/var/lib/yum/yumdb/l/bdcb4f2101ce4faa01fd089f77bf6f2963aa91c9-libc-client-devel-2007e-11.el6-x86_64/checksum_type
/var/lib/yum/yumdb/l/bdcb4f2101ce4faa01fd089f77bf6f2963aa91c9-libc-client-devel-2007e-11.el6-x86_64/command_line
/var/lib/yum/yumdb/l/bdcb4f2101ce4faa01fd089f77bf6f2963aa91c9-libc-client-devel-2007e-11.el6-x86_64/from_repo
/var/lib/yum/yumdb/l/bdcb4f2101ce4faa01fd089f77bf6f2963aa91c9-libc-client-devel-2007e-11.el6-x86_64/from_repo_revision
/var/lib/yum/yumdb/l/bdcb4f2101ce4faa01fd089f77bf6f2963aa91c9-libc-client-devel-2007e-11.el6-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/l/bdcb4f2101ce4faa01fd089f77bf6f2963aa91c9-libc-client-devel-2007e-11.el6-x86_64/reason
/var/lib/yum/yumdb/l/bdcb4f2101ce4faa01fd089f77bf6f2963aa91c9-libc-client-devel-2007e-11.el6-x86_64/releasever

windme 发表于 2011-12-6 08:49:10

/usr/lib/ 下面是有的啊

windme 发表于 2011-12-6 09:09:39

软连接做好后,提示如下,还是安装不了
configure: error: Kerberos libraries not found.

      Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )




# ./configure --with-php-config=/usr/local/php/bin/php-config --with-imap --with-imap-ssl --with-kerberos
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-20060613
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
checking for krb5-config... /usr/bin/krb5-config
configure: error: Kerberos libraries not found.

      Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )

licess 发表于 2011-12-6 09:52:29

不好上面的问题一样吗,找一下,按他的要求加上--with-kerberos不就行了

windme 发表于 2011-12-6 10:16:45

是一样的问题,找不到libc-client.a的问题已经按照做软连接解决,但是编译的时候 ,我已经按照提示加入了啊with-kerberos 如下。
# ./configure --with-php-config=/usr/local/php/bin/php-config --with-imap --with-imap-ssl --with-kerberos
然后提示报错就是上一个回复

[ 本帖最后由 windme 于 2011-12-6 10:21 编辑 ]

licess 发表于 2011-12-6 11:32:32

locate 找kerberos 参数后面加上所在目录

windme 发表于 2011-12-6 11:57:58

locate kerberos
/etc/selinux/targeted/modules/active/modules/kerberos.pp
/usr/share/doc/krb5-devel-1.8.2/krb5-protocol/draft-ietf-cat-kerberos-pk-init-09.txt
/usr/share/man/man1/kerberos.1.gz
/usr/share/man/man8/kerberos_selinux.8.gz
/usr/share/man/ru/man8/kerberos_selinux.8.gz
/usr/share/selinux/devel/include/services/kerberos.if
/usr/share/selinux/targeted/kerberos.pp.bz2
请问那个是?

windme 发表于 2011-12-7 10:05:08

军哥,求助。。:) :lol

licess 发表于 2011-12-7 14:45:23

可能是没安装上kerberos

windme 发表于 2011-12-7 17:58:04

yum 过了,能有啥处理办法不

windme 发表于 2011-12-9 08:04:13

求助啊,还是没解决:handshake

licess 发表于 2011-12-9 17:46:40

yum 安装上还不行那就不清楚什么原因了

catding 发表于 2012-6-15 10:20:56

找到方法了。
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
页: [1] 2
查看完整版本: 军哥,关于centosX64位中安装IMAP错误的问题请教