Home > Article > Backend Development > 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:
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!