我正在尝试使用RedHat 7上的SSL编译Tomcat 1.2。由于RedHat不提供OpenSSL 1.0.2,我下载了OpenSSL 1.0.2j并进行编译。安装位置为/usr/local/ssl
。我尝试使用./configure --with-ssl==/usr/local/ssl --with-apr=/usr/bin/apr-1-config --with-java-home=/usr/java/default
将该路径传递给configure脚本,但我一直收到以下错误消息:
checking for OpenSSL library... using openssl from /usr/lib and /usr/include
checking OpenSSL library version >= 1.0.2...
Found OPENSSL_VERSION_NUMBER 0x1000105f (OpenSSL 1.0.1e 11 Feb 2013)
Require OPENSSL_VERSION_NUMBER 0x1000200f or greater (1.0.2)
configure: error: Your version of OpenSSL is not compatible with this version of tcnative
当我执行“openssl版本”时,它说我正在运行OpenSSL 1.0.2j。