简体   繁体   English

/ usr / bin / ld找不到-lbsd

[英]/usr/bin/ld cannot find -lbsd

This is the error I get when I try and make the apue.3e source code from the book Advanced Programming in the Unix Environment. 这是我尝试从Unix环境中的高级编程一书中编写apue.3e源代码时得到的错误。

/lib -lapue -pthread -lrt -lbsd
/usr/bin/ld: cannot find -lbsd
collect2: error: ld returned 1 exit status
make[1]: *** [badexit2] Error 1
make[1]: Leaving directory `/home/john/Documents/apue.3e/threads'
make: *** [all] Error 1

I've looked through similar errors that all seemed to be missing symbolic links to files, but I can't figure out what -lbsd is. 我查看了类似的错误,似乎都缺少文件的符号链接,但我无法弄清楚-lbsd是什么。 When I try to change directory to /usr/bin/ld it doesn't exist. 当我尝试将目录更改为/usr/bin/ld它不存在。 Is -lbsd supposed to be in this directory or is it that ld just can't find it? -lbsd应该在这个目录中还是ld只是找不到它? I've tried to refrain from posting stupid questions on here, but I can't stand to be stuck on this any longer. 我试图避免在这里发布愚蠢的问题,但我不能忍受再坚持这个问题了。 Any help is greatly appreciated. 任何帮助是极大的赞赏。

sudo apt-get install libbsd-dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM