• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Trouble compiling program in linux

DarkKnight

Golden Member
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?


 
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.
 
Back
Top