首页  >  文章  >  后端开发  >  centos7 php7 动态编译mysqlnd: configure: error: Cannot find OpenSSL's <evp.h> 错误解决

centos7 php7 动态编译mysqlnd: configure: error: Cannot find OpenSSL's <evp.h> 错误解决

PHP中文网
PHP中文网原创
2017-07-03 17:29:381527浏览

开始以为是没有安装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>

以上是centos7 php7 动态编译mysqlnd: configure: error: Cannot find OpenSSL&#39;s &lt;evp.h&gt; 错误解决的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn