Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-13-2008, 02:19 PM   #1
Registered: Nov 2004
Posts: 101

Rep: Reputation: 15
No package 'libxml-2.0' found


Trying to install a software from sources, I get this error message when configure:

checking pkg-config is at least version 0.15... yes
checking for LIBXML2... configure: error: Package requirements (libxml-2.0) were not met:
No package 'libxml-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBXML2_CFLAGS
and LIBXML2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

This is what I tried, but getting always the same error message:

[]# pkg-config --version

[]# whereis pkgconfig
pkgconfig: /usr/lib/pkgconfig /usr/share/pkgconfig

[]# PKG_CONFIG=/usr/bin/pkg-config
[]# export PKG_CONFIG
[]# PKG_CONFIG_PATH=/usr/lib/pkgconfig
[]# export PKG_CONFIG_PATH

[]# rpm -q libxml2
I included also these two lines in '/etc/' and run 'ldconfig' before './configure':

Any suggestion? Thank you very much.

Last edited by guarriman; 03-13-2008 at 02:22 PM.
Old 03-13-2008, 02:22 PM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You need to install libxml2-devel (or libxml2-dev on some distros) using your distributions package manager.
Old 12-15-2011, 03:30 PM   #3
LQ Newbie
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
Talking Thanks Reddazz

Thanks Reddazz! I had this same problem. I knew libxml2 was on my system. I check $PATH to make sure everything was correct there. I created PKG_CONFIG_PATH... but still no luck. I was pulling my hair out! Then I found your post - THANK YOU!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Package needs re-installation, but package cannot be found woodbase Debian 4 09-26-2006 01:07 PM
Package not found on Medium taj SUSE / openSUSE 1 07-14-2006 10:24 AM
Package gtkmm-2.4 was not found kahlil88 Linux - Software 1 01-26-2006 10:02 AM
libglade, libxml not found on PPTPClient install FC3 mbogucki Linux - Newbie 4 12-06-2004 05:14 PM
Package not found.. hammerstein02 Linux - Newbie 1 12-02-2002 05:35 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration