LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 01-11-2007, 09:50 AM   #1
yumener
Member
 
Registered: Oct 2005
Posts: 63

Rep: Reputation: 15
install a library


I have compiled and installed the csoap library.

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).
 
Old 01-11-2007, 10:12 AM   #2
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
check on the version required

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.
 
Old 01-11-2007, 11:01 AM   #3
yumener
Member
 
Registered: Oct 2005
Posts: 63

Original Poster
Rep: Reputation: 15
I am sure the version is correct (csoap = 1.0.4).

I am trying to compile and install

libcomplearn_0.9.7.orig.tar.gz (923K, October 1, 2006)
from http://www.complearn.org/download.html

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.
 
Old 01-11-2007, 12:16 PM   #4
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
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
 
Old 01-12-2007, 03:13 AM   #5
yumener
Member
 
Registered: Oct 2005
Posts: 63

Original Poster
Rep: Reputation: 15
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
 
Old 01-12-2007, 07:29 AM   #6
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
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.

Code:
./configure --with-csoap=/DirectoryWhereYouInstalledCSOAP
you migth try disabling dependency tracking but some features in your program might not work:
Code:
./configure --disable-dependency-tracking
 
Old 01-13-2007, 04:39 AM   #7
yumener
Member
 
Registered: Oct 2005
Posts: 63

Original Poster
Rep: Reputation: 15
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.

Code:
./configure --with-csoap=/DirectoryWhereYouInstalledCSOAP
you migth try disabling dependency tracking but some features in your program might not work:
Code:
./configure --disable-dependency-tracking
 
  


Reply



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
how to install C++ Sockets Library mohtasham1983 Programming 4 01-05-2007 03:44 AM
How to install .o files into library ieydis Linux - Software 1 11-23-2005 10:38 PM
How to install Library? vanhelsing Programming 23 07-10-2004 07:31 PM
gd library install. eye Linux - Software 0 10-15-2003 11:11 AM
I can't install this library carlcromer Linux - Newbie 2 07-01-2002 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:02 AM.

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
Open Source Consulting | Domain Registration