Home  >  Article  >  Backend Development  >  Centos7 php7 dynamically compiles mysqlnd: configure: error: Cannot find OpenSSL's <evp.h> Error resolution

Centos7 php7 dynamically compiles mysqlnd: configure: error: Cannot find OpenSSL's <evp.h> Error resolution

PHP中文网
PHP中文网Original
2017-07-03 17:29:381523browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn