mysy2安裝gcc開發工具鏈


1、直接安裝,發現會安裝失敗

mysy2安裝gcc開發工具鏈

2、設置安裝鏡像

在你的軟件安裝目錄找到etc/pacman.d

分別在mirrorlist.mingw32,mirrorlist.mingw64,mirrorlist.msys中加入以下內容

Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/

Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64/

Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$arch/

注意要放在第一行,然後pacman -Sy

mysy2安裝gcc開發工具鏈

https://mirror.tuna.tsinghua.edu.cn/help/msys2/

如果不行添加中科大的試一試

<code>##
## 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//<code>
<code>##
## 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//<code>
<code>##
## 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//<code>

3、查詢安裝包

比如pacman -Ss gcc

mysy2安裝gcc開發工具鏈

4、安裝clion工具鏈


pacman -S mingw64/mingw-w64-x86_64-gcc

pacman -S mingw64/mingw-w64-x86_64-gdb

pacman -S mingw64/mingw-w64-x86_64-make

pacman -S mingw64/mingw-w64-x86_64-cmake


pacman -S msys/gcc

pacman -S msys/gdb

pacman -S msys/make

pacman -S msys/cmake


分享到:


相關文章: