- First download Xcode from the app store
- Open Xcode
- Create any file
- give it a name
- find a place to put it
- Remind that git link has not been established, ignore him
-
Open a terminal and
type/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Start the installation,
continue typing in the terminal,brew install qt
there is a problem
, let's solve it, follow me~
Mac平台出现brew command not found问题解决方法
错误提示:zsh: command not found: brew
解决方法:mac 安装homebrew,
1、用以下命令安装,序列号选择中科大(1)的
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master
/Homebrew.sh)"
The download is a bit slow, please be patient~
- Let's install it again (brew is installed this time, it was not installed for the first time)
inputbrew install qt