我正在使用 RHEL 5.6 并尝试使用 haproxy 的“xforwardfor”补丁安装 stunnel 以获得类似于此(旧)帖子的设置:http : //www.buro9.com/blog/2009/12/07/installing- haproxy-load-balance-http-and-https/
当我运行 ./configure 时,出现以下错误:
*snip*
configure: **************************************** SSL
checking for SSL directory... Not found
Couldn't find your SSL library installation dir
Use --with-ssl option to fix this problem
Run Code Online (Sandbox Code Playgroud)
从stunnel 文档中,我需要传递一个包含 ssl 库的目录(假设 libssl.so ? )以及一个“certs”目录。
我尝试创建一个 /etc/openssl 目录,其中包含一个“certs”目录和一个符号链接,/lib64/libssl.so.6但这没有用。
我还需要哪些其他图书馆?
更新
从 config.log:
它是由 stunnel configure 4.32 创建的,它是由 GNU Autoconf 2.61 生成的。调用命令行是
$ ./configure --with-ssl=/lib64
## --------- ##
## Platform. ##
## --------- ##
uname -m = x86_64
uname -r = 2.6.18-238.12.1.el5
uname -s = Linux
* snip *
configure:23977: **************************************** SSL
configure:23996: checking for SSL directory
configure:24019: result: Not found
Run Code Online (Sandbox Code Playgroud)
并运行ls /lib64 | grep ssl:
$ ls -l /lib64 | grep ssl
-rwxr-xr-x 1 root root 315032 Dec 7 2010 libssl.so.0.9.8e
lrwxrwxrwx 1 root root 16 Jul 13 18:48 libssl.so.6 -> libssl.so.0.9.8e
Run Code Online (Sandbox Code Playgroud)
我猜你没有openssl-devel安装。
这是configure我在 RHEL5.6 服务器上获得的 stunnel-4.42输出:
**************************************** SSL
checking for SSL directory... /usr/
checking for obsolete RSAref library... no
checking /usr//include/openssl/engine.h usability... yes
checking /usr//include/openssl/engine.h presence... yes
checking for /usr//include/openssl/engine.h... yes
Run Code Online (Sandbox Code Playgroud)
check_ssl_dirin函数configure正在寻找/usr/include/openssl/ssl.h哪个是 的一部分openssl-devel。
不要传递任何选项来配置、创建任何目录或创建任何符号链接。