title: /usr/bin/ld cannot find -lbsd
body: <p>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.  </p>
  
  <pre><code>/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
  </code></pre>
  
  <p>I've looked through similar errors that all seemed to be missing symbolic links to files, but I can't figure out what <code>-lbsd</code> is.  When I try to change directory to <code>/usr/bin/ld</code> it doesn't exist.  Is <code>-lbsd</code> supposed to be in this directory or is it that <code>ld</code> 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.</p>