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

したがって、次のことができることを示すように、構成オプションの 1 つを使用してプレフィックスを強制しています。

 ./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

メイクファイルを編集して、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 に答える