问题
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