当我尝试使用./configure
从源代码安装hydra时,我会收到以下消息:
Checking for openssl (libssl, libcrypto, ssl.h, sha.h) ...
... NOT found, SSL support disabled
但是,which openssl
显示:/usr/bin/openssl
并且libssl.so
&libcrypto.so
位于:/usr/lib/arm-linux-gnueabihf
因此,我使用其中一个配置选项来强制使用前缀,因为它表明我可以:
./configure --help
Options:
--prefix=path path to install hydra and its datafiles to
--with-oracle=prefix prefix for oracle include dir
--with-oracle-lib=prefix prefix for oracle lib dir
--with-ssl=prefix prefix for SSL headers
--with-ssl-lib=prefix prefix for SSL libraries
--disable-xhydra disable compilation of hydra GUI
--nostrip do not per default strip binaries before install
--debug show debug output to trace errors
--help this here
因此,我尝试了这种变体,但在配置SSL支持时仍然没有成功:
./configure --with-ssl-lib=/usr/lib/arm-linux-gnueabihf/
我在这里错过了什么?
您需要编辑您的makefile以专门引用brew安装的openssl版本。
运行./configure
后,编辑新创建的Makefile,并将第一行更改为:
CC=gcc -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
这应该可以修复编译器向您抛出的所有与ssl相关的令人讨厌的错误。