官方下载地址
http://www.msys2.org/
指定好安装路径(一般D根目录即可),一路下一步就好。
使用[清华大学开源软件镜像站]中的地址,修改\etc\pacman.d目录下的三个文件。
1、mirrorlist.msys 文件
## ## MSYS2 repository mirrorlist ## ## Primary ## msys2.org ## Server = http://repo.msys2.org/msys/$arch ## Server = http://downloads.sourceforge.net/project/msys2/REPOS/MSYS2/$arch ## Server = http://www2.futureware.at/~nickoe/msys2-mirror/msys/$arch/ Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$arch2、mirrorlist.mingw32 文件
## ## 32-bit Mingw-w64 repository mirrorlist ## ## Primary ## msys2.org ## Server = http://repo.msys2.org/mingw/i686 ## Server = http://downloads.sourceforge.net/project/msys2/REPOS/MINGW/i686 ## Server = http://www2.futureware.at/~nickoe/msys2-mirror/i686/ Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i6863、mirrorlist.mingw64 文件
## ## 64-bit Mingw-w64 repository mirrorlist ## ## Primary ## msys2.org ## Server = http://repo.msys2.org/mingw/x86_64 ## Server = http://downloads.sourceforge.net/project/msys2/REPOS/MINGW/x86_64 ## Server = http://www2.futureware.at/~nickoe/msys2-mirror/x86_64/ Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64更新Msys2系统环境
pacman -Sy #更新源 pacman -Syu pacman -Su安装MinGW-w64 和 MinGW-x86版本
pacman -S mingw-w64-i686-toolchain pacman -S mingw-w64-x86_64-toolchain安装GTK
pacman -S mingw-w64-i686-gtk3 pacman -S mingw-w64-x86_64-gtk3安装Glade
pacman -S mingw-w64-i686-glade pacman -S mingw-w64-x86_64-glade在Path值中加入参数
32位
D:\msys64\mingw32\bin64位
D:\msys64\mingw64\bin变量MINGW_HOME
D:\msys64\mingw32变量C_INCLUDE_PATH
%MINGW_HOME%\include变量LIBRARY_PATH
%MINGW_HOME%\lib变量Path中添加如下值
%MINGW_HOME%\bin;