安装Mysys2

官方网站:http://www.msys2.org/

注意: 1,MYSYS2不支持FAT*文件系统。

         2,目前版本已不支持windows xp系统。

安装步骤:

1,根据电脑系统下载对应版本。

2,运行安装文件

3,选择安装位置,安装路径不能包含中文和空格。

4,运行MYSYS2

5,使用命令行升级数据包和系统文件

pacman -Syu

6,如果安装过程中有问题,重启程序。升级剩余部分

pacman -Su

 7, 检查兼容性

pacman -S git

MYSYS2 自带强大的安装包管理系统(package management system) Pacman。用来支持安装包的下载,安装和更新。

下载工具包命令:

pacman -Sy               更新软件包

pacman -S                 yu 更新所有

pacman -Ss               xx 查询软件xx的信息

pacman -S                 xx安装软件xx

 

下载make

通过命令pacman -Ss make查询完整的make包名
每个软件大致分为了三大类:mingw32、mingw64、msys。注意如果想下载mingw要区分32位和64位。

输入pacman -Ss make 查找安装包:

pc@pc-PC MINGW64 ~
# pacman -Ss make
mingw32/mingw-w64-i686-ag 2.1.0.r1975.d83e205-1
    The Silver Searcher: An attempt to make something better than ack, which
    itself is better than grep (mingw-w64)
mingw32/mingw-w64-i686-cmake 3.12.4-1
    A cross-platform open-source make system (mingw-w64)
mingw32/mingw-w64-i686-cmake-doc-qt 3.12.4-1
    CMake documentation in Qt Help format
mingw32/mingw-w64-i686-connect 1.105-1
    Make socket connection using SOCKS4/5 and HTTP tunnel (mingw-w64)
mingw32/mingw-w64-i686-cotire 1.8.0_3.12-2
    CMake module to speed up builds (automated PCH, unity builds) (mingw-w64)
mingw32/mingw-w64-i686-dmake 4.12.2.2-1
    Dmake is a make utility similar to GNU make or the Workshop dmake
    (mingw-w64)
mingw32/mingw-w64-i686-extra-cmake-modules 5.50.0-1
    Extra CMake modules (mingw-w64)
mingw32/mingw-w64-i686-gtk-engine-murrine 0.98.2-2
    GTK2 engine to make your desktop look like a 'murrina', an italian word
    meaning the art glass works done by Venicians glass blowers. (mingw-w64)
mingw32/mingw-w64-i686-libmicrohttpd 0.9.61-1
    GNU libmicrohttpd is a small C library that is supposed to make it easy to
    run an HTTP server as part of another application (mingw-w64)
mingw32/mingw-w64-i686-make 4.2.1-2 (mingw-w64-i686-toolchain)
    GNU make utility to maintain groups of programs (mingw-w64)
mingw32/mingw-w64-i686-perl 5.28.0-1
    A highly capable, feature-rich programming language (mingw-w64)
mingw32/mingw-w64-i686-premake 4.3-2
    A build configuration tool. Describe your build using Lua and generate the
    project files for your specific toolset (mingw-w64)
mingw32/mingw-w64-i686-sip 4.19.13-2
    A tool that makes it easy to create Python bindings for C and C++ libraries
    (mingw-w64)
mingw64/mingw-w64-x86_64-ag 2.1.0.r1975.d83e205-1
    The Silver Searcher: An attempt to make something better than ack, which
    itself is better than grep (mingw-w64)
mingw64/mingw-w64-x86_64-cmake 3.12.4-1
    A cross-platform open-source make system (mingw-w64)
mingw64/mingw-w64-x86_64-cmake-doc-qt 3.12.4-1
    CMake documentation in Qt Help format
mingw64/mingw-w64-x86_64-connect 1.105-1
    Make socket connection using SOCKS4/5 and HTTP tunnel (mingw-w64)
mingw64/mingw-w64-x86_64-cotire 1.8.0_3.12-2
    CMake module to speed up builds (automated PCH, unity builds) (mingw-w64)
mingw64/mingw-w64-x86_64-dmake 4.12.2.2-1
    Dmake is a make utility similar to GNU make or the Workshop dmake
    (mingw-w64)
mingw64/mingw-w64-x86_64-extra-cmake-modules 5.50.0-1
    Extra CMake modules (mingw-w64)
mingw64/mingw-w64-x86_64-gtk-engine-murrine 0.98.2-2
    GTK2 engine to make your desktop look like a 'murrina', an italian word
    meaning the art glass works done by Venicians glass blowers. (mingw-w64)
mingw64/mingw-w64-x86_64-libmicrohttpd 0.9.61-1
    GNU libmicrohttpd is a small C library that is supposed to make it easy to
    run an HTTP server as part of another application (mingw-w64)
mingw64/mingw-w64-x86_64-make 4.2.1-2 (mingw-w64-x86_64-toolchain)
    GNU make utility to maintain groups of programs (mingw-w64)
mingw64/mingw-w64-x86_64-perl 5.28.0-1
    A highly capable, feature-rich programming language (mingw-w64)
mingw64/mingw-w64-x86_64-premake 4.3-2
    A build configuration tool. Describe your build using Lua and generate the
    project files for your specific toolset (mingw-w64)
mingw64/mingw-w64-x86_64-sip 4.19.13-2
    A tool that makes it easy to create Python bindings for C and C++ libraries
    (mingw-w64)
msys/automake-wrapper 11-1 (base-devel)
    Wrapper scripts for automake and aclocal
msys/automake1.10 1.10.3-3 (base-devel)
    A GNU tool for automatically creating Makefiles
msys/automake1.11 1.11.6-3 (base-devel)
    A GNU tool for automatically creating Makefiles
msys/automake1.12 1.12.6-3 (base-devel)
    A GNU tool for automatically creating Makefiles
msys/automake1.13 1.13.4-4 (base-devel)
    A GNU tool for automatically creating Makefiles
msys/automake1.14 1.14.1-3 (base-devel)
    A GNU tool for automatically creating Makefiles
msys/automake1.15 1.15.1-1 (base-devel)
    A GNU tool for automatically creating Makefiles
msys/automake1.16 1.16.1-1 (base-devel)
    A GNU tool for automatically creating Makefiles
msys/automake1.6 1.6.3-2 (base-devel)
    A GNU tool for automatically creating Makefiles
msys/automake1.7 1.7.9-2 (base-devel)
    A GNU tool for automatically creating Makefiles
msys/automake1.8 1.8.5-3 (base-devel)
    A GNU tool for automatically creating Makefiles
msys/automake1.9 1.9.6-2 (base-devel)
    A GNU tool for automatically creating Makefiles
msys/cmake 3.12.4-1
    A cross-platform open-source make system
msys/colormake-git r8.9c1d2e6-1
    Colorized build output
msys/icmake 9.02.08-1
    A program maintenance (make) utility using a C-like grammar
msys/make 4.2.1-1 (base-devel)
    GNU make utility to maintain groups of programs
msys/make-git 4.1.8.g292da6f-1
    GNU make utility to maintain groups of programs
msys/perl 5.28.1-1 (base-devel)
    A highly capable, feature-rich programming language
msys/perl-ExtUtils-MakeMaker 7.34-1 (perl-modules)
    ExtUtils::MakeMaker - Create a module Makefile
msys/perl-Test-NoWarnings 1.04-1 (perl-modules)
    Make sure you didn't emit any warnings while testing
msys/remake-git 4.1.2957.e3e34dd9-1
    Enhanced GNU Make - tracing, error reporting, debugging, profiling and more
msys/sharutils 4.15.2-1
    Makes so-called shell archives out of many files

安装:

pc@pc-PC MINGW64 ~
# pacman -S msys/make
正在解决依赖关系...
正在查找软件包冲突...

软件包 (1) make-4.2.1-1

下载大小:   0.41 MiB
全部安装大小:  1.22 MiB

:: 进行安装吗? [Y/n] y
:: 正在获取软件包......
 make-4.2.1-1-x86_64      414.8 KiB   334K/s 00:01 [#####################] 100%
(1/1) 正在检查密钥环里的密钥                       [#####################] 100%
(1/1) 正在检查软件包完整性                         [#####################] 100%
(1/1) 正在加载软件包文件                           [#####################] 100%
(1/1) 正在检查文件冲突                             [#####################] 100%
(1/1) 正在检查可用硬盘空间                         [#####################] 100%
:: 正在处理软件包的变化...
(1/1) 正在安装 make                                [#####################] 100%

pc@pc-PC MINGW64 ~

测试

pc@pc-PC MINGW64 ~
# make -v
GNU Make 4.2.1
为 x86_64-pc-msys 编译
Copyright (C) 1988-2016 Free Software Foundation, Inc.
许可证:GPLv3+:GNU 通用公共许可证第 3 版或更新版本<http://gnu.org/licenses/gpl.html>。
本软件是自由软件:您可以自由修改和重新发布它。
在法律允许的范围内没有其他保证。

下载 gcc

通过命令pacman -Ss gcc查询完整的gcc包名

输入:pacman -Ss gcc

得到:

pc@pc-PC MINGW64 ~
# pacman -Ss gcc
mingw32/mingw-w64-i686-gcc 7.3.0-2 (mingw-w64-i686-toolchain)
    GNU Compiler Collection (C,C++,OpenMP) for MinGW-w64
mingw32/mingw-w64-i686-gcc-ada 7.3.0-2 (mingw-w64-i686-toolchain)
    GNU Compiler Collection (Ada) for MinGW-w64
mingw32/mingw-w64-i686-gcc-fortran 7.3.0-2 (mingw-w64-i686-toolchain)
    GNU Compiler Collection (Fortran) for MinGW-w64
mingw32/mingw-w64-i686-gcc-libgfortran 7.3.0-2 (mingw-w64-i686-toolchain)
    GNU Compiler Collection (libgfortran) for MinGW-w64
mingw32/mingw-w64-i686-gcc-libs 7.3.0-2 (mingw-w64-i686-toolchain)
    GNU Compiler Collection (libraries) for MinGW-w64
mingw32/mingw-w64-i686-gcc-objc 7.3.0-2 (mingw-w64-i686-toolchain)
    GNU Compiler Collection (ObjC,Obj-C++) for MinGW-w64
mingw32/mingw-w64-i686-lcov 1.13-2
    front-end for GCC's coverage testing tool gcov
mingw32/mingw-w64-i686-perl 5.28.0-1
    A highly capable, feature-rich programming language (mingw-w64)
mingw64/mingw-w64-x86_64-gcc 8.2.1+20181130-1 (mingw-w64-x86_64-toolchain)
    GNU Compiler Collection (C,C++,OpenMP) for MinGW-w64
mingw64/mingw-w64-x86_64-gcc-ada 8.2.1+20181130-1 (mingw-w64-x86_64-toolchain)
    GNU Compiler Collection (Ada) for MinGW-w64
mingw64/mingw-w64-x86_64-gcc-fortran 8.2.1+20181130-1 (mingw-w64-x86_64-toolchain)
    GNU Compiler Collection (Fortran) for MinGW-w64
mingw64/mingw-w64-x86_64-gcc-libgfortran 8.2.1+20181130-1 (mingw-w64-x86_64-toolchain)
    GNU Compiler Collection (libgfortran) for MinGW-w64
mingw64/mingw-w64-x86_64-gcc-libs 8.2.1+20181130-1 (mingw-w64-x86_64-toolchain)
    GNU Compiler Collection (libraries) for MinGW-w64
mingw64/mingw-w64-x86_64-gcc-objc 8.2.1+20181130-1 (mingw-w64-x86_64-toolchain)
    GNU Compiler Collection (ObjC,Obj-C++) for MinGW-w64
mingw64/mingw-w64-x86_64-lcov 1.13-2
    front-end for GCC's coverage testing tool gcov
mingw64/mingw-w64-x86_64-perl 5.28.0-1
    A highly capable, feature-rich programming language (mingw-w64)
msys/gcc 7.3.0-3 (msys2-devel)
    The GNU Compiler Collection - C and C++ frontends
msys/gcc-fortran 7.3.0-3 (msys2-devel)
    Fortran front-end for GCC
msys/gcc-libs 7.3.0-3 (base) [已安装: 7.3.0-1]
    Runtime libraries shipped by GCC
msys/mingw-w64-cross-gcc 7.3.0-2 (mingw-w64-cross-toolchain mingw-w64-cross)
    Cross GCC for the MinGW-w64

安装


pc@pc-PC MINGW64 ~
# pacman -S msys/gcc
正在解决依赖关系...
正在查找软件包冲突...

软件包 (9) binutils-2.30-1  gcc-libs-7.3.0-3  isl-0.19-1  mpc-1.1.0-1
           msys2-runtime-devel-2.11.2-1  msys2-w32api-headers-6.0.0.5223.7f9d8753-1
           msys2-w32api-runtime-6.0.0.5223.7f9d8753-1  windows-default-manifest-6.4-1
           gcc-7.3.0-3

下载大小:    41.22 MiB
全部安装大小:  276.50 MiB
净更新大小:  272.80 MiB

:: 进行安装吗? [Y/n] y

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值