我正在使用RHEL 5.6,并尝试使用haproxy的“xforwardfor”修补程序安装stunnel,以获得类似于此(较旧)文章的设置: http : //www.buro9.com/blog/2009/12/07/installing- HAProxy的负载平衡-HTTP-和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
从stunnel文档中,我需要传递一个包含ssl库(假设为libssl.so?)以及“certs”目录的目录。
我试过用'certs'目录和/lib64/libssl.so.6创build一个/ etc / openssl目录,但是没有成功。
我还需要其他什么库?
更新
从config.log:
它是由GNU Autoconf 2.61生成的stunnel configure 4.32创build的。 调用命令行是
$ ./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
并运行ls /lib64 | grep ssl 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
我猜你没有安装openssl-devel 。
这里是我在RHEL5.6服务器上得到的stunnel-4.42 configure输出:
**************************************** 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
check_ssl_dir中的函数check_ssl_dir正在寻找openssl-devel一部分/usr/include/openssl/ssl.h 。
不要传递任何选项来进行configuration,创build任何目录或创build任何符号链接。
证书位于/ lib64中的/ etc / openssl和64位软件库中。 你不应该混合这些。 假设你在一个64位平台上,并且库存在/ lib64中,试试这个:
./configure --with-ssl=/lib64
…如果它不起作用,发布“config.log”文件的相关部分以进一步帮助您。