Jul
06
2009
Installation Error – configure: error: cannot find xml2-config
Posted by alex in Errors at 12:15 AMIf you receive the below error on a CentOS Linux server while configuring, compiling, or installing an application then you most likely need to install the development package for libxml2.
Error:configure: error: cannot find xml2-config
The package that includes xml2-config is libxml2-devel which can be installed via yum using the syntax below.
yum install libxml2-devel
The below shows what the output on a CentOS Linux server would look like while install libxml2-devel.
[root@dev istat-0.5.3]# yum install libxml2-devel Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package libxml2-devel.i386 0:2.6.26-2.1.2.7 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: libxml2-devel i386 2.6.26-2.1.2.7 base 2.1 M Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 2.1 M Is this ok [y/N]: y Downloading Packages: (1/1): libxml2-devel-2.6. 100% |=========================| 2.1 MB 00:02 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: libxml2-devel ######################### [1/1] Installed: libxml2-devel.i386 0:2.6.26-2.1.2.7 Complete!
Once installed run your configure, compile, or install script again and you should not receive the same error message.
Related posts:
- error: invalid Python installation: unable to open /usr/lib/python2.4/config/Makefile (No such file or directory) I received the error below when attempting to use easy_install...
- Compiling PHP with Litespeed: configure: error: xml2-config not found I received the following error in the log when attempting...
- Perl CPAN install XML::LibXML::Common, Error: libxml2 not found I am working on getting Monarch installed on a server...
- ERROR: Error installing webrat: Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. One of my tasks today at work was to install...
- checking for mysql_close in -lmysqlclient… no I received the below error when attempting to compile PHP...
Tags: CentOS, configure error, error, installation error, libxml2, libxml2-devel, Linux, xml2-config, yum


























Entries (RSS)