configure: error: Cannot find OpenSSL's <evp.h>

时光毁灭记忆、已成空白 提交于 2019-12-12 14:15:12

问题


I've installed the php7 on my redhat server,while i want to use the mysql extension.I cd the php7 source ext dir,and configured many times but all result that "configure: error: Cannot find OpenSSL's ".It's awfal!

1.I had the openssl there.

[root@xx mysqlnd]# rpm -qa|grep -i openssl
pyOpenSSL-0.10-2.el6.x86_64
openssl-1.0.0-20.el6.x86_64
openssl-devel-1.0.0-20.el6.x86_64
libcurl-openssl-7.33.0-2.2.x86_64
libcurl-openssl-devel-7.33.0-2.2.x86_64

2. I had tried amost all of the methods such as "ln the lib" or "Instead of --with-openssl-dir=/usr/include/openssl just use --with-openssl" the first 3 pages of results by google search,but all makes no help.

so,what can i do if i want use the mysql driver for php ?


回答1:


Force remove the old php and add mysqlnd extension at the begining of reinstall by configure include options '--with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-mysqlnd'. Now,it works well. But,it's not a good idea...



来源:https://stackoverflow.com/questions/37604936/configure-error-cannot-find-openssls-evp-h

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!