配置:错误:无法找到OpenSSL的。

时间:2021-11-20 18:27:27

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!

我已经在我的redhat服务器上安装了php7,而我想使用mysql扩展。我cd上的php7源ext dir,配置了很多次,但是所有的结果都是“configure: error:不能找到OpenSSL的”。awfal !

1.I had the openssl there.

1。我有openssl。

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

2。我尝试了所有的方法,如“在lib中”或“不使用-openssl-dir=/usr/ openssl只使用-openssl”,这是谷歌搜索结果的前3页,但都没有任何帮助。

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

那么,如果我想用mysql驱动程序来使用php,我能做什么呢?

1 个解决方案

#1


0  

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

强制删除旧php,并在重新安装时添加mysqlnd扩展,通过配置包含选项“-- -mysqli=mysqlnd—with-pdo-mysql=mysqlnd—enable-mysqlnd”。现在,它工作得很好。但是,这不是个好主意……

#1


0  

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

强制删除旧php,并在重新安装时添加mysqlnd扩展,通过配置包含选项“-- -mysqli=mysqlnd—with-pdo-mysql=mysqlnd—enable-mysqlnd”。现在,它工作得很好。但是,这不是个好主意……