configure: error: xml2-config not found. Please check your libxml2 installation. 오류 해결방법

시스템운영/Apache+PHP|2019.03.18 17:59
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path... (cached) /usr/bin/xml2-config
configure: error: xml2-config not found. Please check your libxml2 installation.

*해결방법
[root@centos7]# yum -y install libxml2-devel

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libxml2-devel.i386 0:2.6.26-2.1.21.el5_9.3 set to be updated
--> Processing Dependency: pkgconfig for package: libxml2-devel
--> Running transaction check
---> Package pkgconfig.i386 1:0.21-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================
Package                                 Arch                           Version                                           Repository                      Size
===============================================================================================================================================================
Installing:
libxml2-devel                           i386                           2.6.26-2.1.21.el5_9.3                             base                           2.1 M
Installing for dependencies:
pkgconfig                               i386                           1:0.21-2.el5                                      base                            59 k

Transaction Summary
===============================================================================================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 2.2 M
Downloading Packages:
(1/2): pkgconfig-0.21-2.el5.i386.rpm                                                                                                    |  59 kB     00:00
(2/2): libxml2-devel-2.6.26-2.1.21.el5_9.3.i386.rpm                                                                                     | 2.1 MB     00:01
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                          619 kB/s | 2.2 MB     00:03
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : pkgconfig                                                                                                                               1/2
  Installing     : libxml2-devel                                                                                                                           2/2

Installed:
  libxml2-devel.i386 0:2.6.26-2.1.21.el5_9.3

Dependency Installed:
  pkgconfig.i386 1:0.21-2.el5

Complete!

댓글()