title: error installing psycopg2, library not found for -lssl
body: <p>I run </p>
  
  <pre class="lang-sh prettyprint-override"><code>sudo pip install psycopg2
  </code></pre>
  
  <p>and I get a bunch of output that looks like:  </p>
  
  <pre><code>cc -DNDEBUG -g -fwrapv -Os .....
  .....
  cc -DNDEBUG -g -fwrapv -Os .....
  .....
  </code></pre>
  
  <p>And at the end it says:</p>
  
  <pre><code>ld: library not found for -lssl
  
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  
  error: command 'cc' failed with exit status 1
  
  ----------------------------------------
  Cleaning up...
  Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/bz/pvj1g9xj16d10pjjgbrfl3fw0000gn/T/pip_build_root/psycopg2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/bz/pvj1g9xj16d10pjjgbrfl3fw0000gn/T/pip-uE3thn-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/bz/pvj1g9xj16d10pjjgbrfl3fw0000gn/T/pip_build_root/psycopg2
  Storing debug log for failure in /Users/Tyler/Library/Logs/pip.log
  </code></pre>
  
  <hr>
  
  <p>Running <strong>easy_install</strong> or doing it <strong>from source</strong> both give me the same error at the end (the part about library not found for -lssl).</p>
  
  <hr>
  
  <p>Running brew install (or upgrade) openssl yields the below</p>
  
  <pre><code>$ brew upgrade openssl
  Error: openssl-1.0.1h already installed
  </code></pre>
  
  <p>Can anyone help me out?</p>