duchenpaul 发表于 2013-04-16 15:25

php安装时的问题

安装命令: # ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-bz2 --with-openssl --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-ftp --enable-mbstring --enable-sockets --enable-exif --disable-ipv6

安装时出现的错误:
checking whether to enable LIBXML support... yes
checking libxml2 install dir... yes
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed.Please check the config.log for details.

PS: *libxml2 以及libxml2-devel已安装
       * 公司内网无法使用yum原安装
      *个人估计问题出在libxml2 和libxml2-devel 但不知道出在何处

请各位大神指点迷津

duchenpaul 发表于 2013-04-16 15:33

config.log 对于错误的描述:

configure:20827: checking whether libxml build works
configure:20854: gcc -o conftest -g -O2   conftest.c

         -lresolv -lm -ldl -lnsl-lxml2 -lz -lm 1>&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../../libxml2.so when searching for -lxml2
/usr/bin/ld: skipping incompatible /usr/lib/libxml2.so when searching for -lxml2
/usr/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status
configure: failed program was:
#line 20843 "configure"
#include "confdefs.h"


    char xmlInitParser();
    int main() {
      xmlInitParser();
      return 0;
    }

gavindev 发表于 2013-04-20 15:48

有发现编译版本,但是不工作了,估计要卸掉重装libxml

能上网就能找到的。
页: [1]
查看完整版本: php安装时的问题