下载并安装msys2
修改镜像服务器
echo "Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/" > /etc/pacman.d/mirrorlist.mingw32
echo "Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64/" > /etc/pacman.d/mirrorlist.mingw64
echo "Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/\$arch/" > /etc/pacman.d/mirrorlist.msys
把ming64的路径加到环境变量
echo "export MINGW=/mingw64" >> ~/.bash_profile
echo "export PATH=\$MINGW/bin:\$PATH" >> ~/.bash_profile
上面修改镜像服务器的操作,会在这个目录C:\msys64\etc\pacman.d生成3个文件
mirrorlist.mingw32
mirrorlist.mingw64
mirrorlist.msys
添加环境变量的操作,可以在这样确认 cat ~/.bash_profile。在.bash_profile文件里面添加两行
export MINGW=/mingw64
export PATH=$MINGW/bin:$PATH
标签:msys2,etc,MINGW,mirrorlist,https,PATH From: https://www.cnblogs.com/chucklu/p/17973327