如何在macOS中安装wget? [英] How to install wget in macOS?

查看:517
本文介绍了如何在macOS中安装wget?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在MAC OS 10.11.1中安装wget,但是运行./configure --with-ssl=openssl时出现此错误:

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.

如何在OSX 10.11.1中解决此问题?

How to resolve this problem in OSX 10.11.1?

推荐答案

使用brew

首先安装酿造:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

然后使用brew安装wget并启用openressl以获得TLS支持

And then install wget with brew and also enable openressl for TLS support

brew install wget

使用MacPorts

首先,下载并运行 MacPorts安装程序(.pkg)

First, download and run MacPorts installer (.pkg)

然后安装wget:

sudo port install wget

这篇关于如何在macOS中安装wget?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆