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.
/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. When I try to change directory to /usr/bin/ld
it doesn't exist. Is -lbsd
supposed to be in this directory or is it that ld
just can't find it? 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With