title: How to install succesfully libsodium (for php7.2) on Centos7?
body: <p>I take a Magento project and when i run x debug I have an exception because libsodium is not installed then I went to install libsodium.<br>
  I then follow this tutorial <a href="https://lukasmestan.com/install-libsodium-extension-in-php7/" rel="nofollow noreferrer">https://lukasmestan.com/install-libsodium-extension-in-php7/</a> (because I have php 7.2 as it is a Magento project) and ... it didn't work out :(<br>
  When I do :  </p>
  
  <pre class="lang-sh prettyprint-override"><code>sudo pecl install -f libsodium  
  </code></pre>
  
  <p>I have the problem :  </p>
  
  <blockquote>
    <p>checking for libsodium... configure: error: Please install libsodium 
    ERROR: `/var/tmp/libsodium/configure --with-php-config=/bin/php-config' failed  </p>
  </blockquote>
  
  <p>Do someone had the same problem ? I mean installing libsodium is what I want to do and for do that I need to install libsodium XD<br>
  If someone have a solution I would really be glad.<br>
  PS: in case of minus please let me know why so that I can improve my post</p>