admin管理员组文章数量:1582029
1、根目录下创建.bin文件夹
mkdir ~/bin
2、配置为临时环境变量(也可配置为永久的)
PATH=~/bin:$PATH
3.下载repo
git clone git://codeaurora/tools/repo.git ./git-repo
git clone https://storage.googleapis/git-repo-downloads/repo ./git-repo
git clone https://dl-ssl.google/dl/googlesource/git-repo/repo ./git-repo
git clone http://gerrit.googlesource/git-repo/repo ./git-repo
4、将git-repo中的repo文件复制到 1 创建的.bin目录中
cd git-repo
cp repo ~/bin/
5、修改权限
chmod a+x ~/bin/repo
6.如果出现问题,很多是因为Mac的软件默认版本比较低,
备注:
MAC里的Git版本比较旧,需要更新到新版本
brew install git
//注意brew的安装目录
cd /usr/local/Cellar/git/2.24.1
//设置环境变量
open .bash_profile
export GIT=/usr/local/git export PATH=$GIT/bin:$PATH
更新Python版本,
$brew upgrade python@2
7.repo
repo init -u http://192.168.1.218:8080/QCOM8.1/UNER/.repo/manifests -b QCOM8.1_UNER_Repo_Manifests_Int -m SQ45S_Int.xml --no-repo-verify
版权声明:本文标题:MAC系统下的repo环境搭建以及下载更新 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1725195403a1012378.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论