I try to install wget in MAC OS 10.11.1 but when I run ./configure --with-ssl=openssl
I get this error:
configure: error: --with-ssl=openssl was given, but SSL is not available.
How to resolve this problem in OSX 10.11.1?
I try to install wget in MAC OS 10.11.1 but when I run ./configure --with-ssl=openssl
I get this error:
configure: error: --with-ssl=openssl was given, but SSL is not available.
How to resolve this problem in OSX 10.11.1?
For macOS Sierra, to build wget 1.18 from source with Xcode 8.2.
Install Xcode
Build OpenSSL
Since Xcode doesn't come with OpenSSL lib, you need build by yourself. I found this: https://github.com/sqlcipher/openssl-xcode, follow instruction and build OpenSSL lib. Then, prepare your OpenSSL directory with "include" and "lib/libcrypto.a", "lib/libssl.a" in it.
Let's say it is: "/Users/xxx/openssl-xcode/openssl", so there should be "/Users/xxx/openssl-xcode/openssl/include" for OpenSSL include and "/Users/xxx/openssl-xcode/openssl/lib" for "libcrypto.a" and "libssl.a".
Build wget
Go to wget directory, configure:
wget should configure and found OpenSSL, then make:
wget made out. Install wget:
Or just copy wget to where you want.
Configure cert
You may find wget cannot verify any https connection, because there is no CA certs for the OpenSSL you built. You need to run:
New way:
If you machine doesn't have "/usr/local/ssl/" dir, first make it.
Old way:
Then put cert.pem to: "/usr/local/ssl/cert.pem"
DONE: It should be all right now.
And then install
wget
with brew and also enableopenressl
for TLS supportIt worked perfectly for me.
You need to do
Instead of this
First install brew:
And then install wget with brew and also enable openressl for TLS support
If you are installing with Macports, this is pretty easy too.
I update mac to Sierra , 10.12.3
My wget stop working.
When I tried to install by typing
I got the following warning
Then tried to unsintall by typing
Then I reinstalled by typing
Finally I got it worked.Thank God!