本文介绍了配置:错误:找不到OpenSSL的< evp.h>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Redhat服务器上安装了php7,同时我想使用mysql扩展.我将php7源ext cd cd,并进行了多次配置,但所有结果都是配置:错误:找不到OpenSSL的".糟糕!

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.我在那里有openssl.

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.我尝试了几乎所有方法,例如在lib中"或而不是--with-openssl-dir =/usr/include/openssl只是使用--with-openssl",这是Google搜索结果的前3页,但无济于事.

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.

那么,如果我想将mysql驱动程序用于php怎么办?

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

推荐答案

在重新安装开始时通过配置包含选项'--with-mysqli = mysqlnd --with-pdo-mysql强制删除旧的php并添加mysqlnd扩展名. = mysqlnd --enable-mysqlnd'.现在,它运作良好.但是,这不是一个好主意...

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...

这篇关于配置:错误:找不到OpenSSL的< evp.h>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-18 05:22
查看更多