首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装支持openssl的hydra

安装支持openssl的hydra
EN

Stack Overflow用户
提问于 2016-01-14 03:30:09
回答 1查看 1.3K关注 0票数 1

当我尝试用./configure从源安装hydra时,我得到了以下消息:

代码语言:javascript
复制
 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

因此,我使用一个配置选项来强制前缀,因为它表明我可以:

代码语言:javascript
复制
 ./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支持:

代码语言:javascript
复制
 ./configure --with-ssl-lib=/usr/lib/arm-linux-gnueabihf/

这里我漏掉了什么?

EN

回答 1

Stack Overflow用户

发布于 2016-10-13 22:53:52

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

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

代码语言:javascript
复制
CC=gcc -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib

这应该会修复编译器抛给你的所有那些讨厌的ssl相关错误。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34775415

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档