Tools

正确安装homebrew

  • 正确安装位置 /usr/local, 不需要你sudo 破坏原系统文件.

如果以前安装过,建议首先清理一下系统环境

cd `brew --prefix`
rm -rf Cellar$ brew prune
rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew
rm -rf ~/Library/Caches/Homebrew

安装命令

  • 注意前面的 /usr/bin/ruby -e 一定要有
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • homebrew 会将套件安装到独立目录,并将文件软链接至 /usr/local
  • brew doctor 自检,查看安装后的brew是否有问题, 如果显示 Your system is ready to brew, 那就表示安装成功了~
  • brew list显示已经安装的包
adns			gmp			libimobiledevice	maven@3.3		pinentry		tomcat
autoconf		gnupg			libksba			mysql			pkg-config		tree
automake		gnutls			libplist		nettle			protobuf		usbmuxd
brew-cask-completion	icu4c			libtasn1		nginx-full		python			x264
carthage		jenkins			libtool			node			python3			xvid
cocoapods		lame			libunistring		npth			readline		xz
coreutils		libassuan		libusb			openssl			redis
ffmpeg			libffi			libxml2			openssl@1.1		rtmp-nginx-module
gdbm			libgcrypt		libyaml			p11-kit			sqlite
gettext			libgpg-error		makedepend		pcre			swiftlint

参考链接

有问题,请issue我

支付宝扫码打赏 微信打赏

若你觉得我的文章对你有帮助,欢迎点击上方按钮对我打赏

扫描二维码,分享此文章

段连洁's Picture
段连洁

iOSer

Subscribe to JAY 站 | Share Thoughts

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!

Comments