Provo a installare wget in MAC OS 10.11.1 ma quando eseguo ./configure --with-ssl=opensslottengo questo errore:
configure: error: --with-ssl=openssl was given, but SSL is not available.
Come risolvere questo problema in OSX 10.11.1?
Provo a installare wget in MAC OS 10.11.1 ma quando eseguo ./configure --with-ssl=opensslottengo questo errore:
configure: error: --with-ssl=openssl was given, but SSL is not available.
Come risolvere questo problema in OSX 10.11.1?
Risposte:
Usando la birra
Prima installazione brew :
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Quindi installa wget con brew e abilita anche openressl per il supporto TLS
brew install wget
Utilizzando MacPorts
Innanzitutto, scarica ed esegui il programma di installazione di MacPorts (.pkg)
E quindi installa wget:
sudo port install wget
brew install wget --with-libressle ha funzionato perfettamente. Grazie
Warning: wget: this formula has no --with-libressl option so it will be ignored!
brew install wget . Homebrew installerà tutte le dipendenze necessarie
sudo port install wget.
Per macOS Sierra, per creare wget 1.18 dal sorgente con Xcode 8.2.
Installa Xcode
Costruisci OpenSSL
Poiché Xcode non viene fornito con OpenSSL lib, è necessario crearlo da soli. Ho trovato questo: https://github.com/sqlcipher/openssl-xcode , seguire le istruzioni e compilare OpenSSL lib. Quindi, prepara la tua directory OpenSSL con "include" e "lib / libcrypto.a", "lib / libssl.a" in essa.
Diciamo che è: "/ Users / xxx / openssl-xcode / openssl", quindi dovrebbe esserci "/ Users / xxx / openssl-xcode / openssl / include" per OpenSSL include e "/ Users / xxx / openssl-xcode / openssl / lib "per" libcrypto.a "e" libssl.a ".
Costruisci wget
Vai alla directory di wget, configura:
./configure --with-ssl=openssl --with-libssl-prefix=/Users/xxx/openssl-xcode/openssl
wget dovrebbe configurare e trovare OpenSSL, quindi effettuare:
make
wget fatto fuori. Installa wget:
make install
O semplicemente copia wget dove vuoi.
Configura certificato
Potresti scoprire che wget non può verificare alcuna connessione https, perché non ci sono certificati CA per OpenSSL che hai creato. Devi eseguire:
Nuovo modo :
Se la tua macchina non ha "/ usr / local / ssl /" dir, prima fallo.
ln -s /etc/ssl/cert.pem /usr/local/ssl/cert.pem
Vecchio modo :
security find-certificate -a -p /Library/Keychains/System.keychain > cert.pem
security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain >> cert.pem
Quindi inserisci cert.pem in: "/usr/local/ssl/cert.pem"
FATTO : Dovrebbe andare tutto bene adesso.
Devi fare
./configure --with-ssl = openssl --with-libssl-prefix = / usr / local / ssl
Invece di questo
./configure --with-ssl = openssl
Aggiornamento mac a Sierra, 10.12.3
La mia wget smette di funzionare.
Quando ho provato a installare digitando
brew install wget --with-libressl
Ho ricevuto il seguente avviso
Attenzione: wget-1.19.1 già installato, non è collegato.
Quindi ha tentato di annullare l'installazione digitando
brew uninstall wget --with-libressl
Quindi ho reinstallato digitando
brew install wget --with-libressl
Finalmente ho funzionato. Grazie a Dio!
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Quindi installare wgetcon brew e abilitare anche il openresslsupporto TLS
brew install wget --with-libressl
Ha funzionato perfettamente per me.