MAC 安装wget --with-ssl=openssl

原文:https://thomashunter.name/blog/install-wget-on-os-x-lion/

安装前需确认已经安装XCODE,  XCODE 可以在 app store 上免费下载安装。

然后在命令行中运行如下命令,分别是下载,解压,配置编译环境,编译和编译安装。

最主要是的在./configure 的时候带上带上--with-ssl=openssl, 否则会报错,说ssl没有安装,默认使用GNUTUIL 中的ssl。我就是这里安装不上搜到了本文。

Run the following commands in a terminal window to compile wget on OS X Lion:

curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz
tar -xzvf wget-1.13.4.tar.gz
cd wget-1.13.4
./configure --with-ssl=openssl
make
sudo make install
which wget #Should output: /usr/local/bin/wget

Install wget on OS X Lion

2011/11/05

A pre-requisite for this to work is that you have the second disc of utilities that came with your Mac installed. This disc will provide a bunch of utilities required to compile code. Alternatively, you can Install
Xcode
 from the App Store (it’s free!) and you will get all of the same utilities.

UPDATE: Installing Xcode is no longer good enough.You will now need to open Xcode, go to preferences (Cmd + ,), go to Downloads, and install the Command Line Tools feature. This installs a bunch of development tools onto your system.

Run the following commands in a terminal window to compile wget on OS X Lion:

curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz
tar -xzvf wget-1.13.4.tar.gz
cd wget-1.13.4
./configure --with-ssl=openssl
make
sudo make install
which wget #Should output: /usr/local/bin/wget

Note the with-ssl=openssl option in the command above. If you omit that, you will get the following error:

...
checking for compress in -lz... yes
checking for gpg_err_init in -lgpg-error... no
checking for gcry_control in -lgcrypt... no
checking for libgnutls... no
configure: error: --with-ssl was given, but GNUTLS is not available.
[email protected]:~/wget-1.13.4 $

The reason for this is that GNUTLS isn’t included with Mac OS X, but the equally usable library OpenSSL is available.

时间: 2024-08-03 02:22:56

MAC 安装wget --with-ssl=openssl的相关文章

mac 安装wget

下载一个Wget的源码包,http://www.gnu.org/software/wget/ 打开终端解压, 1 输入:tar zxvf wget-1.9.1.tar.gz 2 cd 进入到解压的目录 3 输入:./configure 4 输入:make 5 输入:sudo make install 输入秘密 OK 安装完成!

Mac OS 安装Wget

没有Wget的日子是非常难过的,强大的Mac OS 下安装Wget非常简单 下载一个Wget的源码包,http://www.gnu.org/software/wget/ 打开终端解压, 1 输入:tar zxvf wget-1.9.1.tar.gz 2 cd 进入到解压的目录 3 输入:./configure --with-ssl=openssl 4 输入:make 5 输入:sudo make install 输入秘密 OK 安装完成! 可以输入wget www.google.com 测试是否

Mac下安装wget

在Mac下使用brew安装wget时报错 Error: The `brew link` step did not complete successfully 然后wget不能使用,查了下,使用如下方式安装了wget,可以使用 curl -O http://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz tar -xzf wget-1.15.tar.gz cd wget-1.15 ./configure --with-ssl=openssl make sudo make

Mac 使用 wget 安装 Redis3.0

#安装wget brew install wget # 使用wget安装Redis # 下载压缩包 wget http://download.redis.io/releases/redis-3.0.7.tar.gz #解压 tar -xzf redis-3.0.7.tar.gz #建立软连接 ln -s redis-3.0.7 redis #进入安装目录 cd redis #编译安装 make && make install 原文地址:https://www.cnblogs.com/ika

mac 安装 swoole 可能会出现的错误

请先看完之后再操作 一.用pecl安装swoole(没有安装起来) 2018年4月,由于homebrew的变动,导致无法使用brew install的方式安装php的扩展,现在改为用pecl安装,pecl安装swoole的方法为: pecl install swoole 出现在选项要填yes还是no,这篇文章有写:https://www.jianshu.com/p/14f542b7e5d0#comment-27164461 二.可能出现的报错及解决方法 2.1 fatal error: 'ope

mac 安装nginx

1.brew search nginx 2.brew install nginx 启动nginx ,sudo nginx ;访问localhost:8080 发现已出现nginx的欢迎页面了. 备注: ln -s  /usr/local/sbin/nginx /usr/bin/nginx 做个软连接.常用的指令有: nginx -V 查看版本,以及配置文件地址nginx -v 查看版本nginx -c filename 指定配置文件nginx -h 帮助 #重新加载配置|重启|停止|退出 ngi

mac安装brew 软件包管理工具Homebrew

mac 安装 brew  Homebrew brew 全称Homebrew  是Mac OSX上的软件包管理工具 Homebrew 安装和卸载工具 只用一行命令就能完成 官方地址:    http://brew.sh/index.html mac 自带ruby 打开命令行  terminal 输入  : ruby -version 1) 安装命令 ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)&

mac 安装 nginx 环境

1.brew search nginx 2.brew install nginx 启动nginx ,sudo nginx ;访问localhost:8080 发现已出现nginx的欢迎页面了. 备注: ln -s  /usr/local/sbin/nginx /usr/bin/nginx 做个软连接.[——根据具体目录而定]常用的指令有: nginx -V 查看版本,以及配置文件地址nginx -v 查看版本nginx -c filename 指定配置文件nginx -h 帮助 #重新加载配置|

通过Homebrew下载安装wget

Homebrew是一款非常强大的可以应用在MAC中的Linux管理包,我们可以通过下面的方法解决. A - 执行安装brew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 进入终端之后,执行brew的安装. B - 安装 wget brew install wget 执行完毕之后,我们就可以用wget命令下载远程文件.