MSYS2 (Minimal SYStem 2) 是一个MSYS的独立改写版本,主要用于 shell 命令行开发环境。同时它也是一个在Cygwin (POSIX 兼容性层) 和 MinGW-w64(从"MinGW-生成")基础上产生的,追求更好的互操作性的 Windows
MSYS2是MSYS的一个升级版,准确的说是集成了pacman和Mingw-w64的Cygwin升级版, 提供了bash shell等linux环境、版本控制软件(git/hg)和MinGW-w64 工具链。与MSYS最大的区别是移植了 Arch Linux的软件包管理系统 Pacman(其实是与Cygwin的区别)。
安装跟简单,直接参考现成的资料吧,基本上一路下一步就好.
pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime
pacman -Syu
https://www.cnblogs.com/feipeng8848/p/10037962.html
https://www.cnblogs.com/findumars/p/6546088.html
简单的说 msys64\etc\pacman.d 目录下有三个文件。
mirrorlist.msys
mirrorlist.mingw64
mirrorlist.mingw32
mirrorlist.msys:
##
## MSYS2 repository mirrorlist
##
## Primary
## msys2.org
Server = http://mirrors.ustc.edu.cn/msys2/msys/$arch/
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/
mirrorlist.mingw64:
##
## 64-bit Mingw-w64 repository mirrorlist
##
## Primary
## msys2.org
Server = http://mirrors.ustc.edu.cn/msys2/mingw/x86_64/
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 = http://mirror.bit.edu.cn/msys2/REPOS/
mirrorlist.mingw32:
##
## 32-bit Mingw-w64 repository mirrorlist
##
## Primary
## msys2.org
Server = http://mirrors.ustc.edu.cn/msys2/mingw/i686/
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/
https://blog.csdn.net/tennysonsky/article/details/79221507
pacman -S mingw-w64-x86_64-gtk3
pacman -S mingw-w64-x86_64-gtk2
pacman -S mingw-w64-x86_64-glade
pacman -S mingw-w64-x86_64-devhelp
pacman -S mingw-w64-x86_64-toolchain base-devel
C:\DevelopProgram\msys64\mingw64\bin
C:\DevelopProgram\msys64\usr\bin
pkg-config --cflags gtk+-2.0
make -v
# 同时会打开mod模式
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io
glade3设计工具太老,很多的包里很多组件都取消了,推荐使用glade