Chào anh chị em
Tôi config php bị lỗi mà google hoài vẫn chưa tìm được cách giải quyết
php-5.2.6
Redhat Enterpride Linux 3.0: 2.4.21-4.EL
Mong mọi người giúp đỡ.
Sau đây là các thông tin mà tôi cho là cần thiết, nếu còn thiếu sót gì thì cho tôi biết.
Cảm ơn đã quan tâm.
Code:
./configure \
--host=i386-redhat-linux \
--build=i386-redhat-linux \
--target=i386-redhat-linux-gnu \
--program-prefix= \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib \
--libexecdir=/usr/libexec \
--localstatedir=/var \
--sharedstatedir=/usr/com \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--cache-file=../config.cache \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d \
--enable-force-cgi-wwwect \
--disable-debug \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--with-curl \
--with-exec-dir=/usr/bin \
--with-freetype-dir=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr/local/lib \
--include=/usr/local/include/libpng \
--with-zlib \
--with-xpm-dir=/usr/local/xpm \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gdbm \
--with-gettext \
--with-ncurses \
--with-gmp \
--with-iconv \
--with-regex=system \
--with-layout=GNU \
--enable-bcmath \
--enable-exif \
--enable-ftp \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-discard-path \
--enable-wddx \
--without-oci8 \
--with-pear=/usr/share/pear \
--with-imap=/usr/local/imap-2002e \
--with-imap-ssl \
--with-kerberos=/usr/kerberos \
--with-ldap=shared \
--with-mysql=/usr/local/mysql \
--with-pgsql=/usr/local/pgsql \
--enable-bcmath \
--enable-shmop \
--enable-calendar \
--enable-mbstring \
--enable-mbregex \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mcrypt=/usr/local/libmcrypt
Lỗi của nó đây (một phần config.log)
Code:
configure:49236: checking whether build with IMAP works
configure:49274: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -L/usr/local/lib -L/usr/kerberos/lib -L/usr/local/gd/lib -L/usr/local/imap-2002e/lib conftest.c -lc-client -lcrypt -lpam -lgmp -lgd -lfreetype -lpng -lz -ljpeg -lgdbm -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz 1>&5
/usr/local/imap-2002e/lib/libc-client.a(osdep.o)(.text+0x8196): In function `ssl_server_init':
/usr/local/src/imap-2002e/c-client/osdep.c:287: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: warning: libcom_err.so.3, needed by /usr/lib/libcurl.so, may conflict with libcom_err.so.2
configure: failed program was:
#line 49247 "configure"
#include "confdefs.h"
Kerberos được cài đặt ở /usr/kerberos/
Code:
# cat /etc/ld.so.conf
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-3.1/lib
/usr/local/pgsql/lib
Code:
# ldd /usr/lib/libcurl.so | grep libcom_err
libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0xb7432000)
Code:
# ls -l /usr/kerberos/lib/libcom_err.so*
lrwxr-xr-x 1 root root 17 Jul 18 2006 /usr/kerberos/lib/libcom_err.so -> libcom_err.so.3.0
lrwxr-xr-x 1 root root 17 Jul 18 2006 /usr/kerberos/lib/libcom_err.so.3 -> libcom_err.so.3.0
-rwxr-xr-x 1 root root 5572 Sep 24 2003 /usr/kerberos/lib/libcom_err.so.3.0
Code:
# find /lib -type f -name libcom_err.so.*
/lib/libcom_err.so.2.0