1) system environment: CentOS6.6;
2) PHP Package: Php-5.4.35.tar, Php-5.5.19.tar;
3) Task: Source code package mode installation;
4) problem: In the configuration of two "PHP" package version, can not make, to exclude the source code problems;
5) solve: Because of the configuration environment, rely on the library files, through the Yum source installation libxml2, libxml2-devel solve the problem;
6) The installation process is as follows:
[[email protected] tools] #tar php-5.4.35.tar.gz
[Email protected] Php-5.4.35]#./configure
.....................................
Configure:error:xml2-config not found. Please checkyour LIBXML2 installation.
[[email protected] php-5.4.35]# make
Make: * * does not specify the target and cannot find the makefile. Stop it. The reason for this error is that the library file is missing primarily
[[email protected]] Yum Install libxml2
[Email protected] Php-5.4.35]yum install Libxml2-devel–y
After installing the library file through the above Yum source, the next make and Makeinstall are installed.
This article is from the "Operations" blog, please be sure to keep this source http://sky9896.blog.51cto.com/2330653/1591386
Source Code installation PHP