title: How do I install the OpenSSL libraries on Ubuntu?
body: <p>I'm trying to build some code on Ubuntu 10.04 LTS that uses OpenSSL 1.0.0.  When I run make, it invokes g++ with the "-lssl" option.  The source includes:</p>
  
  <pre><code>#include &lt;openssl/bio.h&gt;
  #include &lt;openssl/buffer.h&gt;
  #include &lt;openssl/des.h&gt;
  #include &lt;openssl/evp.h&gt;
  #include &lt;openssl/pem.h&gt;
  #include &lt;openssl/rsa.h&gt;
  </code></pre>
  
  <p>I ran:</p>
  
  <pre><code>$ sudo apt-get install openssl
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  openssl is already the newest version.
  0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
  </code></pre>
  
  <p>But I guess the openssl package doesn't include the library.  I get these errors on make:</p>
  
  <pre><code>foo.cpp:21:25: error: openssl/bio.h: No such file or directory
  foo.cpp:22:28: error: openssl/buffer.h: No such file or directory
  foo.cpp:23:25: error: openssl/des.h: No such file or directory
  foo.cpp:24:25: error: openssl/evp.h: No such file or directory
  foo.cpp:25:25: error: openssl/pem.h: No such file or directory
  foo.cpp:26:25: error: openssl/rsa.h: No such file or directory
  </code></pre>
  
  <p>How do I install the OpenSSL C++ library on Ubuntu 10.04 LTS?</p>
  
  <p>I did a <code>man g++</code> and (under "Options for Linking") for the -l option it states: " The linker searches a standard list of directories for the library..." and "The directories searched include several standard system directories..."  What are those standard system directories?</p>