【问题标题】:Install hydra with openssl support使用 openssl 支持安装 hydra
【发布时间】:2016-04-18 22:37:04
【问题描述】:

当我尝试使用 ./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/

我在这里错过了什么?

【问题讨论】:

    标签: linux ssl hydra


    【解决方案1】:

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

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

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

    这应该可以解决编译器向您抛出的所有与 ssl 相关的烦人错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-12
      • 2012-09-20
      • 2014-05-30
      • 2019-02-27
      • 2015-02-24
      • 2020-03-21
      • 1970-01-01
      • 2020-09-02
      相关资源
      最近更新 更多