2016-01-13 126 views
1

安裝的Hydra當我嘗試從源代碼與./configure安裝的Hydra我得到的出現以下消息:與OpenSSL的支持

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/ 

缺少什麼我在這裏?

回答

1

您需要編輯您的makefile以專門引用brew的已安裝版本的openssl。

運行./configure編輯後,新創建的Makefile文件,改變第一線的樣子:

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

這應該可以解決所有那些討厭的SSL相關的錯誤編譯器在你扔。