LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 09-08-2002, 08:52 AM   #1
bynaar
Member
 
Registered: Jul 2002
Posts: 141

Rep: Reputation: 15
Talking 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
 
Old 09-08-2002, 09:02 AM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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


Last edited by MasterC; 09-08-2002 at 09:05 AM.
 
Old 09-08-2002, 09:03 AM   #3
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
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.
 
Old 09-08-2002, 09:11 AM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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.
 
Old 09-08-2002, 09:26 AM   #5
bynaar
Member
 
Registered: Jul 2002
Posts: 141

Original Poster
Rep: Reputation: 15
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
 
Old 09-08-2002, 03:09 PM   #6
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
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.
 
Old 09-08-2002, 06:18 PM   #7
bynaar
Member
 
Registered: Jul 2002
Posts: 141

Original Poster
Rep: Reputation: 15
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'
 
Old 09-08-2002, 08:17 PM   #8
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
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.
 
Old 09-08-2002, 08:31 PM   #9
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
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!
 
Old 09-09-2002, 05:39 AM   #10
bynaar
Member
 
Registered: Jul 2002
Posts: 141

Original Poster
Rep: Reputation: 15
It's a . . .

file sharing . . .

program ..
 
  


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
Problems compiling gv wearetheborg Linux - Software 2 10-17-2005 08:42 AM
Problems Compiling Problems With GCC And C++ phnxbn Linux - Software 0 11-02-2004 06:49 PM
Problems installing amsn (TK compiling problems) JNewton Linux - Software 0 05-24-2004 01:07 PM
Compiling problems garf12 Linux - Software 4 03-06-2004 10:37 PM
problems compiling thejubster Linux - Software 2 07-29-2003 05:26 AM


All times are GMT -5. The time now is 06:09 PM.

Main Menu
Advertisement
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