【发布时间】:2019-09-03 19:25:07
【问题描述】:
我的步骤:
下载:
# wget ftp://xmlsoft.org/libxml2/libxml2-2.9.9.tar.gz
解压存档:
# tar -zxvf libxml2-2.9.9.tar.gz
进入目录:
# cd libxml2-2.9.9/
做一些奇怪的事情:
# ./configure && make && make install
此命令返回错误:
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/libxml2-2.9.9':
configure: error: no acceptable C compiler found in $PATH
命令:php -i | grep libxml 产生以下结果:
PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Unknown on line 0
libxml
libxml2 Version => 2.9.1
OLDPWD => /root/libxml2-2.9.9
_SERVER["OLDPWD"] => /root/libxml2-2.9.9
命令:yum update-to libxml2-2.9.9 - 不工作。
【问题讨论】:
标签: centos