我这样编译OpenSLL
./config --prefix=/opt/OpenSSL/openssl-1.0.0s
make
make install
一切都顺利
/opt/OpenSSL/openssl-1.0.0s/bin/openssl version -a
OpenSSL 1.0.0s 11 Jun 2015
built on: Fri Nov 30 10:04:53 2018
platform: linux-x86_64
options: bn(64,64) rc4(1x,char) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DWHIRLPOOL_ASM
OPENSSLDIR: "/opt/OpenSSL/openssl-1.0.0s"
当我尝试使用选项--with-ssl=/opt/OpenSSL/openssl-1.0.0s
像
./configure --prefix=/opt/OpenSSL/openssl-1.0.0s --with-ssl=/opt/OpenSSL/openssl-1.0.0s/lib
我有一条信息是
configure: error: OpenSSL libs and/or directories were not found where specified!
相同当我尝试使用选项--with-openssl=/opt/OpenSSL/openssl-1.0.0s
编译PHP5.6时
configure: error: Cannot find OpenSSL's libraries
如何找到OpenSSL的库 问候