- 论坛徽章:
- 0
|
10可用积分
我的OS为:
as4 up2 64BIT
原来安装libxml2.2.6.29.tar.gz 时,完全没问题,今天刚好升级其他的,就一并把这些升级版本,没想到出现错误
已经耗了我2个小时没解决了。请教大家。谢谢。
PHP配置如下:
./configure --prefix=/usr/local/webserver/php --with-config-file-path=/usr/local/webserver/php/etc --with-mysql=/usr/local/mysql --with-iconv-dir=/usr/local --with-freetype-dir=/usr/local/freetype --with-jpeg-dir=/usr/local/jpeg6 --with-gd=/usr/local/gd2 --with-png-dir=/usr/local/libpng --with-zlib=/usr/local/zlib --with-libxml-dir=/usr/local/libxml22630 --enable-xml --disable-debug --disable-rpath --enable-discard-path --enable-bcmath --enable-gd-native-ttf --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-force-cgi-redirect --enable-mbstring=all --with-mcrypt --with-iconv --enable-sockets --enable-ftp
libxml 安装如下:
libxml2-2.6.30.tar.gz
./configure --prefix=/usr/local/libxml22630
make
make install
错误提示如下:
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr/local/libxml22630
checking for xml2-config path... /usr/local/libxml222630/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.
config.log 相关资料如下:
configure:19793: checking whether to enable LIBXML support
configure:19841: checking libxml2 install dir
configure:19870: checking for xml2-config path
configure:20028: checking whether libxml build works
configure:20055: gcc -o conftest -g -O2 -L/usr/local/libxml22630/lib conftest.c
-lresolv -lm -ldl -lnsl -lxml2 -lz -liconv -lm 1>&5
configure: failed program was:
#line 20044 "configure"
#include "confdefs.h"
char xmlInitParser();
int main() {
xmlInitParser();
return 0;
}
我GOOGLE过类似的问题,反复做了很多次。但都错误。请大家给个指引。
在XMLSOFT.ORG 下过libxml2-2.6.30-1.x86_64.rpm,libxml2-devel-2.6.30-1.x86_64.rpm,libxml2-python-2.6.30-1.x86_64.rpm
无法安装。 |
|