LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compiling error: /usr/bin/ld: cannot find -lexpat1 (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-error-usr-bin-ld-cannot-find-lexpat1-879989/)

lombaardcj 05-11-2011 01:58 AM

Compiling error: /usr/bin/ld: cannot find -lexpat1
 
Hi All,

I've been around the block with this problem and don't know what else to check to compile source for gpsbabel-1.4.2.

Other posts on this forum mentioning the same error with no resolution on this specifically.

I have looked at the following:
1. The Makefile looks like this for the part compiling with expat options:
Code:

gpsbabel$(EXEEXT): configure Makefile $(OBJS) 
        $(CC)  $(CFLAGS) $(LDFLAGS) $(OBJS) -lm  -L/lib -lexpat -L/usr/lib -lusb $(OUTPUT_SWITCH)$@

2.Search for library files:
Code:

$find /usr/lib -type f -name "*expat*" -print
/lib/libexpat.so.1.5.2
/lib/libexpatw.so.1.5.2
...
[Many other links but not relevant library files]
...

3.I'm running Ubuntu version
Code:

$ lsb_release -a
No LSB modules are available.
Distributor ID:        Ubuntu
Description:        Ubuntu 10.04.2 LTS
Release:        10.04
Codename:        lucid

Can anyone with some know how help me please? I have looked on Google and other forums with no answer to my problem.


"verum ipsum factum" - Giambattista Vico, Italian philosopher
Ubuntu User #31974 | Linux User #518527

knudfl 05-11-2011 02:26 AM

Welcome to LQ.

lexpat means libexpat.so , you will need this :
sudo apt-get install libexpat1-dev
.. which provides the required library and the headers.

The easy way to find a librarary :
Enter the name ( = expat ) in Synaptic "Search".

..


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