gpt4 book ai didi

linux - 安装支持 openssl 的 hydra

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:48:02 24 4
gpt4 key购买 nike

当我尝试使用 ./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 相关错误。

关于linux - 安装支持 openssl 的 hydra,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34775415/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com