title: PHP Libsodium Installing Latest Library Failing, Linux Newb
body: <p>I installed PHP extension libsodium via PECL on Linux, and everything seemed fine as I started to test the functions, but I've noticed that some functions are working and others are not.</p>
  
  <p>For example, when I call sodium_crypto_generichash and sodium_crypto_secretbox i get no errors, but when i call sodium_crypto_pwhash I get an error in PHP saying sodium_crypto_pwhash is not a function. </p>
  
  <p>I'm new to PHP and Linux but I'm thinking this means my PHP library is out of date. When I call</p>
  
  <pre><code>var_dump([
      SODIUM_LIBRARY_MAJOR_VERSION,
      SODIUM_LIBRARY_MINOR_VERSION,
      SODIUM_LIBRARY_VERSION
  ]);
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>array(3){[0]=&gt;int(9)[1]=&gt;int(1)[2]=&gt;string(5)"1.0.8"}
  </code></pre>
  
  <p>And I see at <a href="https://github.com/jedisct1/libsodium/releases" rel="nofollow noreferrer">https://github.com/jedisct1/libsodium/releases</a> the latest release is 1.0.16</p>
  
  <p>So I would like to install the latest library. As I'm new to Linux I'm trying to do this in the terminal and I don't know what to do. these are the steps I followed to this point, starting from my home directory</p>
  
  <ol>
  <li>wget <a href="https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz" rel="nofollow noreferrer">https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz</a> (downloads the file ok)</li>
  <li>tar -xvzf libsodium-1.0.16.tar.gz (unzips the file ok, creates libsodium-1.0.16 directory)</li>
  <li>cd libsodium-1.0.16 directory</li>
  <li>Now what?</li>
  </ol>
  
  <p>Any help would be appreciated. </p>