LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-08-2011, 10:08 AM   #1
h.aliee
LQ Newbie
 
Registered: Sep 2010
Posts: 27

Rep: Reputation: 0
Unhappy /usr/bin/ld: cannot find -lbsd


Hi,

Can anyone help me with this error while making:

# make
gcc -o sim-fast `./sysprobe -flags` -DDEBUG -O sim-fast.o main.o syscall.o memory.o regs.o loader.o ss.o endian.o dlite.o symbol.o eval.o options.o stats.o range.o misc.o -lm `./sysprobe -libs`
/usr/bin/ld: cannot find -lbsd
collect2: ld returned 1 exit status


Thanks in advance
hana
 
Old 06-08-2011, 10:42 AM   #2
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
Well, the linker can't seem to find libbsd. Have you checked its installed and /etc/ld.so.conf lists the directory it resides in?
 
Old 06-08-2011, 11:24 AM   #3
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,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
'ld' is looking for libbsd.so, which is provided by the package libbsd-dev.


sudo apt-get install libbsd-dev
 
Old 06-09-2011, 04:31 AM   #4
h.aliee
LQ Newbie
 
Registered: Sep 2010
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks to all

Zmyrgel: I have not istalled it in that directory
Knudfl: this command does not work. It shows the following error:

sudo apt-get install libbsd-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libbsd-dev


would you please tell me what package I should install, my linux is ubuntu version 8

Thanks
 
Old 06-09-2011, 05:10 AM   #5
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,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Ubuntu version 8 ? Ubuntu 8.04 should work.

Ubuntu 8.10 is unsupported : No packages from the original repo.

But you can still use it : Edit the URLs in /etc/apt/sources.list
to "The old archive URL" http://old-releases.ubuntu.com/ubuntu/

( 'libbsd' is in "universe"
http://old-releases.ubuntu.com/ubunt...e/libb/libbsd/ )
 
Old 06-09-2011, 09:08 AM   #6
h.aliee
LQ Newbie
 
Registered: Sep 2010
Posts: 27

Original Poster
Rep: Reputation: 0
I downloaded the bsd for i386, however, it did not work because of the following error:

Dependency is not satisfiable : libbsd0
 
Old 06-09-2011, 09:11 AM   #7
h.aliee
LQ Newbie
 
Registered: Sep 2010
Posts: 27

Original Poster
Rep: Reputation: 0
I install another package from that site, this time it installed, but when I make my program, it still shows that error!!!!
 
Old 06-09-2011, 11:29 AM   #8
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,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Please show the output from the command 'uname -a'


I.e. when you have a 64bits OS, libbsd will be listed as "Not found".
 
  


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
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 09:33 AM
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 01:08 AM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 02:02 AM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 11:42 PM
/usr/bin/ld: cannot find -lc aa2bi Linux - Newbie 2 06-09-2004 07:32 AM

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

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