Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
the problem is when I tried to compile another program
which requires csoap library, the ./configure output
is like this
checking dependency style of gcc... (cached) gcc3
fgsl_lib is true
fbz2_lib is true
fzlib_lib is true
fxml2_lib is true
fnanohttp_lib is false
fcsoap_lib is
fgdbm_lib is false
fngd is false
fdl_lib is true
ua_optimize is true
host is i686-pc-linux-gnu
build is i686-pc-linux-gnu
so fcsoap_lib is neither false or true, what does this mean?
I have libcsoap.pc under both /usr/lib/pkgconfig
and /usr/local/lib/pkgconfig (I copied it).
since i don't know what software you're trying to install, my first bet is that compiled the wrong version of the library required by the software. check the documentation for the software for the proper library version. post what program you're trying to install.
This library is not necessary for compiling libcomplearn,
but without it libcomplearn will lose some function. So
even if there is no csoap installed, I can still compile
libcomplearn. but I want it with csoap.
Quote:
Originally Posted by waelaltaqi
since i don't know what software you're trying to install, my first bet is that compiled the wrong version of the library required by the software. check the documentation for the software for the proper library version. post what program you're trying to install.
this will rebind your dynamic libraries.
read the man page ... try to list libraries installed to make sure that the library is installed correctly
from complearn directory, try to do :
Code:
./configure --help
and see if ./configure will let you install without checking dependencies. what dist are you using? if you're using redhat i would try to install the library from a binary rpm package. i would try to get the library using yum, yast or apt-get depending on the distribution. if you have more questions, POST
1. I ran ldconfig
2. I checked ./configure --help, it says nothing about avoiding checking dependencies.
3. My dist is FC5.
I weird thing is that I am sure I have these library installed: nanohttp, csoap, gdbm,
especially gdbm, it existed origignally there under /usr,
I can find the header files and lib filed but I can not
find the *.pc file. But ./configure just can not find
these libs, even if I specify the option like --with-gdbm=/usr.
Quote:
Originally Posted by waelaltaqi
try using:
Code:
ldconfig
this will rebind your dynamic libraries.
read the man page ... try to list libraries installed to make sure that the library is installed correctly
from complearn directory, try to do :
Code:
./configure --help
and see if ./configure will let you install without checking dependencies. what dist are you using? if you're using redhat i would try to install the library from a binary rpm package. i would try to get the library using yum, yast or apt-get depending on the distribution. if you have more questions, POST
i downloaded libcomplearn tar, extracted it and did:
Code:
./configure --help
and it came with some helpful options:
Code:
--with-csoap=PREFIX where csoap is installed (required for NGD
and :
Code:
--disable-dependency-tracking speeds up one-time build
it looks that the libcomplearn package is looking for the csoap somewhere else from you installed it. you need to find out where you installed csoap and point the ./configre script to it.
Thanks you very much, especially you tried it by yourself.
about csoap, yes, I tried to compile with option of --with-csoap=/usr/local. but that does not help.
I am sorry I did not notice the disable-dependency option, but as I said in the previous post, without csoap, the function I really want will also be disabled. so I don't really want to disable-dependency. csoap is optional, which means even without it, complearn can be compiled successfully.
I am trying to contact the developer of complearn to see if I can get more help. They asked me to send them the config.log file after I ran ./configure with options. They find some problem but did not get the solution yet, Here is the problem they found,
Quote:
I think this is the important part, have you seen it?
configure:21529: gcc -o conftest -g -O2 -O3 -DNDEBUG -Wall
-I/usr/local/include -I/usr/include -DNDEBUG -Wall
-I/usr/local/include -I/usr/include/libxml2 -I/usr//include
-I/usr/local/include/nanohttp-1.0 -I/usr/local/include
-I/usr/local/include/libcsoap-1.0 -I/usr/local/include/nanohttp-1.0
-I/usr/local/include -L/usr/local/lib -L/usr/lib -L/lib
-L/usr/X11R6/lib -L/usr/local/lib -lgsl -lgslcblas -lm -lxml2 -lz
-lm -L/usr//lib -L/usr/local/lib -L/usr/local/lib -lxml2 conftest.c
-lnanohttp >&5
/usr/bin/ld: cannot find -lnanohttp
collect2: ld returned 1 exit status
configure:21535: $? = 1
configure: failed program was:
...
I believe this evidence is suggesting that your libnanohttp library
file is actually somehow installed wrong or broken. You can see the
correct -L options being used above, and the linker error line from
the gcc as well. Can you demonstrate linking a simple test program to
see if libnanohttp works? I think there is some included in the
distribution of that source code.
Best regards,
so I followed his suggestion to compile the test program of the libnanohttp, it is fine. By the way, all of the librarys are installed either under /usr or /usr/local which I have specified in the options --with-thelib=/usr/local or /usr
Quote:
Originally Posted by waelaltaqi
i downloaded libcomplearn tar, extracted it and did:
Code:
./configure --help
and it came with some helpful options:
Code:
--with-csoap=PREFIX where csoap is installed (required for NGD
and :
Code:
--disable-dependency-tracking speeds up one-time build
it looks that the libcomplearn package is looking for the csoap somewhere else from you installed it. you need to find out where you installed csoap and point the ./configre script to it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.