How to Install wget in OS X如何在Mac OS X下安装wget并解决configure: error:

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How to Install wget in OS X如何在Mac OS X下安装wget并解决configure: error:相关的知识,希望对你有一定的参考价值。

1.ftp://ftp.gnu.org/gnu/wget/官网下载最新的安装包 wget-1.19.tar.gz

2.打开终端输入 tar zxvf wget-1.9.1.tar.gz 解压缩

3.进入wget所在文件夹 终端输入cd wget-1.9.1

4.终端输入 ./configure  

如果出现configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config.

终端输入  ./configure --with-ssl=openssl ,

如果你是OS X 10.10+ and OS X 10.11+,建议输入./configure --with-ssl=openssl --with-libssl-prefix=/usr/local/ssl,否则会报错configure: error: –with-ssl=openssl was given, but SSL is not available,如果按照上面步步骤还是报错,有可能是安装包放置的位置不对,建议放在 usr/local/Cellar/wget-1.9.1,我是这样解决的报错 安装成功的

6.make

7.sudo make install

8.可以输入wget www.google.com 看看是否安装成功

以上是关于How to Install wget in OS X如何在Mac OS X下安装wget并解决configure: error:的主要内容,如果未能解决你的问题,请参考以下文章

How to install .deb file in Ubuntu

How to install OpenBazaar Server in CentOS7

1. how to install vmware tools in ubuntu

How to install Anaconda in Ubuntu

转-How to install an SSH Server in Windows Server 2008

In Ubuntu, How to install Chinese Pinyin with Fcitx?