1、下载wget:去官网下载最新版本的wget:ftp://ftp.gnu.org/gnu/wget/
2、解压:tar zxvf wget-1.20.3.tar.gz
3、配置:进入wget解压目录,输入命令 ./configure
提示错误:
configure: error: Package requirements (gnutls) were not met:
No package 'gnutls' found
去下载gnutls相关的安装包及依赖包,提供下载参考地址:
http://rpm.pbone.net/index.php3/stat/4/idpl/55095149/dir/redhat_el_7/com/gnutls-3.1.18-8.el7.x86_64.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/55095152/dir/redhat_el_7/com/gnutls-devel-3.1.18-8.el7.x86_64.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/55095150/dir/redhat_el_7/com/gnutls-c++-3.1.18-8.el7.x86_64.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/55095151/dir/redhat_el_7/com/gnutls-dane-3.1.18-8.el7.x86_64.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/55097748/dir/redhat_el_7/com/unbound-libs-1.4.20-19.el7.x86_64.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/55095829/dir/redhat_el_7/com/libevent-2.0.21-4.el7.x86_64.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/55095609/dir/redhat_el_7/com/ldns-1.6.16-7.el7.x86_64.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/55096879/dir/redhat_el_7/com/p11-kit-devel-0.18.7-4.el7.x86_64.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/55097942/dir/redhat_el_7/com/zlib-devel-1.2.7-13.el7.x86_64.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/55096344/dir/redhat_el_7/com/libtasn1-devel-3.3-3.el7.x86_64.rpm.html
全部安装后,进入wget解压目录,再执行 ./configure
4、安装:进入wget解压目录,输入命令 make && make install
5、验证:
[root@localhost ~]# wget https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.5.5/apache-zookeeper-3.5.5.tar.gz
--2019-10-08 17:21:45-- https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.5.5/apache-zookeeper-3.5.5.tar.gz
正在解析主机 mirrors.tuna.tsinghua.edu.cn... 101.6.8.193, 2402:f000:1:408:8100::1
正在连接 mirrors.tuna.tsinghua.edu.cn|101.6.8.193|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:3230972 (3.1M) [application/octet-stream]
正在保存至: “apache-zookeeper-3.5.5.tar.gz”
apache-zookeeper-3. 100%[===================>] 3.08M 1.21MB/s 用时 2.6s
2019-10-08 17:21:48 (1.21 MB/s) - 已保存 “apache-zookeeper-3.5.5.tar.gz” [3230972/3230972])
本文所涉及的安装包提供给大家参考,下载地址:
https://download.csdn.net/download/sslj81/11835525