Home >Backend Development >PHP Tutorial >Centos7 php7 dynamically compiles mysqlnd: configure: error: Cannot find OpenSSL's <evp.h> Error resolution
At first I thought that openssl and openssl-devel were not installed. After installation, I found that this error was still prompted. I searched for evp.h and found that this file also exists. I googled it and found the answer on stackoverflow. It turned out that there was a problem with the configure script generated by phpize.
Solution:
<code><span class="kwd">export<span class="pln"> PHP_OPENSSL_DIR<span class="pun">=<span class="pln">yes <span class="pun">./<span class="pln">configure <span class="pun">-<span class="kwd">with<span class="pun">-<span class="pln">openssl<span class="pun">-<span class="pln">dir<span class="pun">=<span class="str">/usr/<span class="pln">include<span class="pun">/<span class="pln">openssl</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></code><br><br><br>
The above is the detailed content of Centos7 php7 dynamically compiles mysqlnd: configure: error: Cannot find OpenSSL's <evp.h> Error resolution. For more information, please follow other related articles on the PHP Chinese website!