当我尝试用./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/这里我漏掉了什么?
发布于 2016-10-13 22:53:52
您需要编辑makefile以明确引用brew安装的openssl版本。
运行./configure之后,编辑新创建的Makefile并更改第一行,如下所示:
CC=gcc -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib这应该会修复编译器抛给你的所有那些讨厌的ssl相关错误。
https://stackoverflow.com/questions/34775415
复制相似问题