PHP 설치 에러 해결 방법 - configure: error: xml2-config not found. Please check your libxml2 installation.
Linux tools 2016. 1. 4. 17:31STEP 1. PHP 설치를 한다.
[root@localhost download]# tar xvfz php-5.6.16.tar.gz
..... 중략 .....
php-5.6.16/EXTENSIONS
php-5.6.16/README.namespaces
php-5.6.16/pear/
php-5.6.16/pear/install-pear.txt
php-5.6.16/pear/install-pear-nozlib.phar
php-5.6.16/pear/fetch.php
php-5.6.16/pear/Makefile.frag
php-5.6.16/README.SUBMITTING_PATCH
[root@localhost download]#
checking libxml2 install dir... /usr
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
[root@localhost php-5.6.16]#
[root@localhost php-5.6.16]#
[root@localhost php-5.6.16]#
[root@localhost php-5.6.16]#
[root@localhost php-5.6.16]# yum -y install xml2-config
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.premi.st
* extras: mirror.premi.st
* updates: mirror.premi.st
No package xml2-config available.
Error: Nothing to do
[root@localhost php-5.6.16]# yum -y install xml2
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.premi.st
* extras: mirror.premi.st
* updates: mirror.premi.st
No package xml2 available.
Error: Nothing to do
[root@localhost php-5.6.16]#
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.premi.st
* extras: mirror.premi.st
* updates: mirror.premi.st
Resolving Dependencies
--> Running transaction check
---> Package libxml2.x86_64 0:2.7.6-14.el6_5.2 will be updated
--> Processing Dependency: libxml2 = 2.7.6-14.el6_5.2 for package: libxml2-python-2.7.6-14.el6_5.2.x86_64
---> Package libxml2.x86_64 0:2.7.6-20.el6_7.1 will be an update
---> Package libxml2-devel.x86_64 0:2.7.6-20.el6_7.1 will be installed
--> Running transaction check
---> Package libxml2-python.x86_64 0:2.7.6-14.el6_5.2 will be updated
---> Package libxml2-python.x86_64 0:2.7.6-20.el6_7.1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================
Installing:
libxml2-devel x86_64 2.7.6-20.el6_7.1 updates 1.1 M
Updating:
libxml2 x86_64 2.7.6-20.el6_7.1 updates 803 k
Updating for dependencies:
libxml2-python x86_64 2.7.6-20.el6_7.1 updates 323 k
Transaction Summary
=====================================================================================================================
Install 1 Package(s)
Upgrade 2 Package(s)
Total download size: 2.2 M
Downloading Packages:
(1/3): libxml2-2.7.6-20.el6_7.1.x86_64.rpm | 803 kB 00:00
(2/3): libxml2-devel-2.7.6-20.el6_7.1.x86_64.rpm | 1.1 MB 00:00
(3/3): libxml2-python-2.7.6-20.el6_7.1.x86_64.rpm | 323 kB 00:00
---------------------------------------------------------------------------------------------------------------------
Total 1.0 MB/s | 2.2 MB 00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libxml2-2.7.6-20.el6_7.1.x86_64 1/5
Updating : libxml2-python-2.7.6-20.el6_7.1.x86_64 2/5
Installing : libxml2-devel-2.7.6-20.el6_7.1.x86_64 3/5
Cleanup : libxml2-python-2.7.6-14.el6_5.2.x86_64 4/5
Cleanup : libxml2-2.7.6-14.el6_5.2.x86_64 5/5
Verifying : libxml2-python-2.7.6-20.el6_7.1.x86_64 1/5
Verifying : libxml2-2.7.6-20.el6_7.1.x86_64 2/5
Verifying : libxml2-devel-2.7.6-20.el6_7.1.x86_64 3/5
Verifying : libxml2-2.7.6-14.el6_5.2.x86_64 4/5
Verifying : libxml2-python-2.7.6-14.el6_5.2.x86_64 5/5
Installed:
libxml2-devel.x86_64 0:2.7.6-20.el6_7.1
Updated:
libxml2.x86_64 0:2.7.6-20.el6_7.1
Dependency Updated:
libxml2-python.x86_64 0:2.7.6-20.el6_7.1
Complete!
[root@localhost php-5.6.16]#
'Linux tools' 카테고리의 다른 글
CentOS 6.6 x64에 OpenSSL 1.0.2e 설치하기 (3) | 2016.01.04 |
---|---|
APM 다운로드 링크 찾는 법 (0) | 2016.01.04 |