关于macbook:MacBook安装wget几种方式

形式一 (没有装置胜利)

官网下载wget源码包: wget-1.19.4.tar.gz

#解压 
tar -zxvf wget-1.19.4.tar.gz

cd 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.gz

cd 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)"

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理