形式一 (没有装置胜利)
官网下载wget源码包: wget-1.19.4.tar.gz
#解压 tar -zxvf wget-1.19.4.tar.gzcd wget-1.19.4./configure #运行配置文件报错,短少pkg-config或太老#先装置Xcode,它外面很多插件的pkg-config —version #查看版本#先装置pkg-config终端输出 pig-config —version 看有没有装置官网下载 pkg-config-0.29.2.tar.gz 最新的包解压 tar -zxvf pkg-config-0.29.2.tar.gzcd pkg-config-0.29.2./configure --with-internal-glib 运行配置文件进行系统配置make 编译make check 安装包自检测sudo make install 装置pkg-config —version 查看#从新进入wget 运行配置文件cd wget-1.19.4./configure —with-ssl=openssl 还是报错 ,他人评论说要先装置Xcode能力编译过,但我没有胜利
下面的形式没有装置胜利,抉择上面形式装置胜利
形式二(brew装置胜利)
官网地址: https://brew.sh/index_zh-cn.html
#装置home-brew/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"#wget 装置brew install wget#查看版本wget -V #显示如下:GNU Wget 1.21.1 在 darwin20.2.0 上编译。-cares +digest -gpgme +https +ipv6 +iri +large-file -metalink +nls +ntlm +opie -psl +ssl/openssl #卸载homebrew/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"#装置homebrew/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"