LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-17-2003, 09:45 PM   #1
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Rep: Reputation: 30
./configure cant find xml2-config (neither can I)


When I ./configure ogle, I get..

*** The xml2-config script installed by LIBXML could not be found
*** If libxml was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the XML2_CONFIG environment variable to the
*** full path to xml2-config.

I did "find / -name xml2-config" and nothing turned up, so as suggested in similar threads on this site, I downloaded the rpm, only to find...

rpm -Uhv libxml2-2.5.3-12.i586.rpm
package libxml2-2.5.3-12 is already installed

!!! I'm at a loss. TIA for any help.

Regards,
unholy.
 
Old 10-17-2003, 10:14 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,578

Rep: Reputation: 186Reputation: 186
One possibility is that you have both libxml2 and libxml installed. The two packages are not as separate as they should be. Check to see if both are installed with:

rpm -qi libxml
rpm -qi libxml2
rpm -qi libxml-devel
rpm -qi libxml2-devel


If both packages are installed then the one that works better is the one that was installed most recently. So you might be able to fix the problem with:

rpm --nodeps -e libxml2-dev
rpm --nodeps -e libxml2
rpm -Uhv libxml2-2.5.3-12.i586.rpm
rpm -Uhv libxml2-devel-2.5.3-12.i586.rpm

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-17-2003, 10:24 PM   #3
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Original Poster
Rep: Reputation: 30
Thanks jailbait, you hit the nail on the head. Both libxml and libxml2 are installed. Im not sure I understand youre suggested solution though. Would this be right..

rpm --nodeps -e libxml
rpm -Uhv libxml2.xxxxxxx.rpm

?
 
Old 10-17-2003, 10:47 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,578

Rep: Reputation: 186Reputation: 186
"Would this be right.."

That is one possible solution. It is possible to have both libxml and libxml2 installed at the same time. It is better that libxml2 be the one installed the most recently. So you could get by with uninstalling libxml2 and installing it again.

You probably need the development lib since you are doing a ./configure. The development libs are either/or. You need to remove libxml-devel and install libxml2-devel. Red Hat may have slightly different names for the development lib packages.


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-17-2003, 11:06 PM   #5
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Original Poster
Rep: Reputation: 30
Excellent, that worked. Thanks a lot! I installed libxml2 and libxml2-devel after removing libxml and libxml2.
 
Old 10-17-2003, 11:10 PM   #6
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,578

Rep: Reputation: 186Reputation: 186
" I installed libxml2 and libxml2-devel after removing libxml and libxml2."

You may run across the odd program that fails because it needs libxml instead of libxml2. If so then install libxml again. My configuration works fine as:

libxml
libxml2
libxml2-devel




___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-17-2003, 11:39 PM   #7
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Original Poster
Rep: Reputation: 30
Ok, now i get this

*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.

I queried the rpm database, and I have gtk. I take it I need the devel package too?
 
Old 10-18-2003, 11:04 AM   #8
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,578

Rep: Reputation: 186Reputation: 186
"I queried the rpm database, and I have gtk. I take it I need the devel package too?"

Yes. That is true for many packages. ./configure checks to make sure that both the package and package-devel are installed.



___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-19-2003, 10:49 AM   #9
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Original Poster
Rep: Reputation: 30
I've just realised that although ogle now works, galeon and evolution do not. They couldn't find libxml. I installed libxml and now ogle will not work. (sigh).
 
Old 10-19-2003, 01:38 PM   #10
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,578

Rep: Reputation: 186Reputation: 186
I think that the three libraries have to be installed in this order:

libxml
libxml2
libxml2-devel

You may also have to start upgrading any package that needs libxml to a version that uses libxml2.


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 10-19-2003 at 01:40 PM.
 
Old 10-26-2003, 01:56 PM   #11
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Original Poster
Rep: Reputation: 30
Sorry jailbait, I haven't been getting email notification. I'm using mplayer now, and I've uninstalled ogle. i do everything from source now and I have no problems. Thanks for your help.

Regards,
unholy.
 
  


Reply


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
PHP 5 cannot find xml2-config for libxml2 support ridertech Linux - Software 21 02-08-2013 10:00 PM
xml2-config not found, can't install php snip128 Linux - Newbie 12 09-29-2011 04:32 PM
PHP5 xml2-config bcf2 Linux - Software 1 07-03-2005 11:45 AM
Problem with ./configure; cannot find gtk-config audiorevolution Linux - Software 8 05-21-2005 03:37 AM
configure can't find gtk-config serial Linux - Newbie 2 03-16-2003 06:27 PM


All times are GMT -5. The time now is 05:38 PM.

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