LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-11-2011, 02:58 AM   #1
lombaardcj
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: 0
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
 
Old 05-11-2011, 03:26 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,758

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

..
 
  


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
Error compiling PHP: /usr/bin/ld: cannot find -lltdl nyheat Linux - Server 4 09-16-2009 03:40 PM
Trouble compiling gridway (/usr/bin/ld: cannot find -lglobus_gass_copy_gcc64) soumyadeep Linux - Software 1 02-20-2009 09:22 AM
troubles compiling c++ on FC6: /usr/bin/ld: cannot find -lXm michael123 Programming 5 09-19-2008 12:55 PM
Compiling error /usr/bin/ld: cannot find -ltclstub84 OlRoy *BSD 7 01-26-2007 05:24 PM
error compiling cdrtools on kernel 2.6.0: /usr/bin/ld: cannot find -lscg schatoor Linux - Software 1 12-21-2003 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration