我尝试在MAC OS 10.11.1中安装wget,但是当我运行。/configure——with-ssl=openssl时,我得到这个错误:
configure: error: --with-ssl=openssl was given, but SSL is not available.
在OSX 10.11.1中如何解决此问题?
我尝试在MAC OS 10.11.1中安装wget,但是当我运行。/configure——with-ssl=openssl时,我得到这个错误:
configure: error: --with-ssl=openssl was given, but SSL is not available.
在OSX 10.11.1中如何解决此问题?
用啤酒
第一次安装brew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
然后用brew安装wget:
brew install wget
使用MacPorts
首先,下载并运行MacPorts安装程序(.pkg)
然后安装wget:
sudo port install wget
你需要做的
./configure——with-ssl=openssl——with-libssl-prefix=/usr/local/ssl
而不是这个
. / configure——使用ssl = openssl
我更新mac到Sierra, 10.12.3
我的机器停止工作了。
当我试图通过输入安装
brew install wget --with-libressl
我得到了以下警告
警告:wget-1.19.1已经安装,只是没有链接。
然后试着通过打字来解除
brew uninstall wget --with-libressl
然后我通过打字重新安装
brew install wget --with-libressl
最后我成功了。感谢上帝!
对于macOS Sierra,使用Xcode 8.2从源代码构建wget 1.18。
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: ./configure --with-ssl=openssl --with-libssl-prefix=/Users/xxx/openssl-xcode/openssl wget should configure and found OpenSSL, then make: make wget made out. Install wget: make install 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. ln -s /etc/ssl/cert.pem /usr/local/ssl/cert.pem Old way: security find-certificate -a -p /Library/Keychains/System.keychain > cert.pem security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain >> cert.pem Then put cert.pem to: "/usr/local/ssl/cert.pem" DONE: It should be all right now.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
然后使用brew安装wget,并启用openressl支持TLS
brew install wget --with-libressl
这对我来说非常有效。