LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Compiling problems (https://www.linuxquestions.org/questions/slackware-14/compiling-problems-29884/)

bynaar 09-08-2002 07:52 AM

Compiling problems
 
Hello !

I'm trying to complie and install a direct-connect clone on my slackware 8.1 system.

The problem is that I get a error message at the end off the ./configure session , saying as follows:

checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.0.0... no
*** Could not run libxml test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means LIBXML was incorrectly installed
*** or that you have moved LIBXML since it was installed. In the latter case, you
*** may want to edit the xml2-config script: /usr/bin/xml2-config
configure: error: libxml2 must be installed.

Then I tried the following:

bash-2.05a$ whereis libxml2
libxml2: /usr/lib/libxml2.a /usr/lib/libxml2.la /usr/lib/libxml2.so /usr/include/libxml2
bash-2.05a$ whereis libxml
libxml: /usr/lib/libxml.a /usr/lib/libxml.la /usr/lib/libxml.so /usr/lib/libxml2.a /usr/lib/libxml2.la /usr/lib/libxml2.so /usr/man/man3/libxml.3.gz /usr/share/man/man3/libxml.3.gz

I believe that I have those xml-libs installed, so how do I solve this dependency trouble ?

http://dc.ketelhot.de/index.php
dc-0.1beta10.tar.gz

MasterC 09-08-2002 08:02 AM

The location it's actually looking for is /usr/bin not /usr/lib

It would appear to be part of the dev package for xml2. Try locating xml2-config IF you don't find it, install the dev for xml2:
http://xmlsoft.org/

ftp://speakeasy.rpmfind.net/pub/libx....24-1.i386.rpm


Excalibur 09-08-2002 08:03 AM

Did you look for the xml2-config file in the /usr/bin directory? If it is present, check the contents and edit to insure it is accurate. If not then, look at the man pages for libxml and see what it states about creating the config file that is being searched for. Then retry your ./configure for the program.

MasterC 09-08-2002 08:11 AM

There is actually a man page for xml2-config if you have it installed. It's some sort of script to get info about the installed version of GNOME xml.

bynaar 09-08-2002 08:26 AM

Ok ! here is the xml2-config file

#! /bin/sh

prefix=/usr
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib

usage()
{
cat <<EOF
Usage: xml2-config [OPTION]

Known values for OPTION are:

--prefix=DIR change libxml prefix [default $prefix]
--libs print library linking information
--cflags print pre-processor and compiler flags
--help display this help and exit
--version output version information
EOF

exit $1
}

if test $# -eq 0; then
usage 1
fi

cflags=false
libs=false

while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac

case "$1" in
--prefix=*)
prefix=$optarg
includedir=$prefix/include
libdir=$prefix/lib
;;

--prefix)
echo $prefix
;;

--version)
echo 2.4.22
exit 0
;;

--help)
usage 0
;;

--cflags)
echo -I${includedir}/libxml2
;;

--libs)
echo -L${libdir} -lxml2 -lz -lm
;;

*)
usage
exit 1
;;
esac
shift
done

exit 0

Excalibur 09-08-2002 02:09 PM

Well, I downloaded the program that you referenced and duplicated the porblem. From what I could determine it is failing to locate the header file xmlversion.h. The Slack install located the include files in the /usr/include/libxml2/libxml directory. It was unable to find them there. So I copied the libxml directory contents up one level to the libxml2 level. So now there are two copies of the header files. Not sure if it was needed, but on the safe side I ran "ldconfig" afterward. Ran the ./configure and it completed normally without any errors. So I would assume that if you do the same thing, that it should work for as well.

bynaar 09-08-2002 05:18 PM

Mega Thanks !

It worked !

Now , here is the icky part . .

I have previously installed another dc-client, and I use this Fat32 partition to download stuff into.

With the old program it is no problems to save to this partition, but with this new one it dont work, It refused to download anything until i was directing it to my home directory. I was helped out before with this issue,
to solve it then, the entry in fstab was:

/dev/hda7 /mnt/hda7 vfat defaults,umask=000 1 0

got a clue this time ?! ..


A new bestseller . . . .

'1001 things to configure , running linux' ;)

Excalibur 09-08-2002 07:17 PM

Well from your mount statement you provided, I understand what it is mounted, method and why, etc. I seem to recall investigating the umask issue for fat32 partitions a while back for somebody. It allows the fat32 partition to be mounted with full permissions for everybody, including normal users, etc. So then I have to assume that it is NOT a permission issue here. Were there any error messages from the direct connect program? You stated that it refused to download to the directory, unless it was your home directory. Perhaps as a test, you might try something like the following.

ln -s /mnt/hda7 ~/download

That would create a sym link in your home directory called "download" that would point to the fat32 partition mounted on /mnt/hda7. Oh, if you have a directory by the name of "download" then use something else like, "shared" or "test." I also think it would need to be created as the user desired, especially for the tilde to work correctly.

Hope it helps, if then please post some kind of error message.

Excalibur 09-08-2002 07:31 PM

Bynaar, if you don't mind me asking. What does this program do to begin with? I have not been able to determine the purpose from the web site! It uses the term direct-connect, but what is that? To me, that term is hardware not software!

bynaar 09-09-2002 04:39 AM

It's a . . .

file sharing . . .

program ..


All times are GMT -5. The time now is 08:48 AM.