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

PHP中文网
Release: 2023-03-12 14:00:02
Original
1462 people have browsed it

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!