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:381364browse

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:

export PHP_OPENSSL_DIR=yes
./configure -with-openssl-dir=/usr/include/openssl


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