Qt在mac安装

  1. 先在app store下载好Xcode
    在这里插入图片描述
  2. 打开Xcode
    在这里插入图片描述
  3. 随便建个文件

在这里插入图片描述

  1. 给它取个名字

在这里插入图片描述

  1. 找个地方放

在这里插入图片描述

  1. 提醒没建立git link,不用理他

在这里插入图片描述

  1. 打开终端,
    输入/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    在这里插入图片描述

  2. 开始安装啦
    继续在终端输入brew install qt
    在这里插入图片描述出现啦问题
    我们来解决它,跟着我这样做~

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

在这里插入图片描述下载有点慢,要耐心等待哦~
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

  1. 我们再安装一次(这次brew是安装好的啦,第一次没有安装)
    输入 brew install qt

猜你喜欢

转载自blog.csdn.net/weixin_43233219/article/details/132235890