1

当我尝试从源代码安装 hydra 时./configure,出现以下消息:

 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/

我在这里想念什么?

4

1 回答 1

1

您需要编辑您的 makefile 以专门引用 brew 安装的 openssl 版本。

运行./configure编辑新创建的 Makefile 并将第一行更改为如下所示:

CC=gcc -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib

这应该可以解决编译器向您抛出的所有那些讨厌的 ssl 相关错误。

于 2016-10-13T14:53:52.353 回答