LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 02:26 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

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



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

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

All times are GMT -5. The time now is 12:17 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