Rumah > Artikel > pembangunan bahagian belakang > centos7 php7 动态编译mysqlnd: configure: error: Cannot find OpenSSL's <evp.h> 错误解决
开始以为是没有安装openssl, openssl-devel,安装后发现还是提示这个错误,搜索了一下evp.h,这个文件也存在。GOOGLE 了一下,在stackoverflow,找到了答案,原来是 phpize 生成的configure脚本有问题。
解决方法:
<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>
Atas ialah kandungan terperinci centos7 php7 动态编译mysqlnd: configure: error: Cannot find OpenSSL's <evp.h> 错误解决. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!