Trouble compiling program in linux

DarkKnight

Golden Member
Apr 21, 2001
1,197
0
0
I'm trying to compile dclib for dcgui on Mandrake 10.1 and when I do

./configure

i get this error:

checking whether g++ supports -shared... yes
checking whether g++ supports -fPIC... yes
checking for BZ2_bzDecompress in (shared) libbz2... no
checking for socklen_t... socklen_t
checking for xml2-config... no
checking for libxml - version >= 2.0.0... no
*** 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.
configure: error: libxml2 must be installed.


I know libxml2 is install because i used urpmi to install it. I'm not sure where the xml2-config script would be, i tried using the find function in mandrake but it keeps on locking up. Any ideas?


 

Armitage

Banned
Feb 23, 2001
8,086
0
0
First, I would check that libxml2 is actually installed. From the command line:

rpm -qa | grep libxml2

This should list the package if it is installed.
If that succeeds, look for the config script in the rpm file list

rpm -q --list libxml2-2.5.4-1 | grep config

What I found on my RH9 box is that the xml2-config script isn't in the libxml2 package, but rather in the libxml2-devel package. My guess is that you don't have the devel package installed.