当前位置:   article > 正文

安装Mysys2

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 查找安装包:

  1. pc@pc-PC MINGW64 ~
  2. # pacman -Ss make
  3. mingw32/mingw-w64-i686-ag 2.1.0.r1975.d83e205-1
  4. The Silver Searcher: An attempt to make something better than ack, which
  5. itself is better than grep (mingw-w64)
  6. mingw32/mingw-w64-i686-cmake 3.12.4-1
  7. A cross-platform open-source make system (mingw-w64)
  8. mingw32/mingw-w64-i686-cmake-doc-qt 3.12.4-1
  9. CMake documentation in Qt Help format
  10. mingw32/mingw-w64-i686-connect 1.105-1
  11. Make socket connection using SOCKS4/5 and HTTP tunnel (mingw-w64)
  12. mingw32/mingw-w64-i686-cotire 1.8.0_3.12-2
  13. CMake module to speed up builds (automated PCH, unity builds) (mingw-w64)
  14. mingw32/mingw-w64-i686-dmake 4.12.2.2-1
  15. Dmake is a make utility similar to GNU make or the Workshop dmake
  16. (mingw-w64)
  17. mingw32/mingw-w64-i686-extra-cmake-modules 5.50.0-1
  18. Extra CMake modules (mingw-w64)
  19. mingw32/mingw-w64-i686-gtk-engine-murrine 0.98.2-2
  20. GTK2 engine to make your desktop look like a 'murrina', an italian word
  21. meaning the art glass works done by Venicians glass blowers. (mingw-w64)
  22. mingw32/mingw-w64-i686-libmicrohttpd 0.9.61-1
  23. GNU libmicrohttpd is a small C library that is supposed to make it easy to
  24. run an HTTP server as part of another application (mingw-w64)
  25. mingw32/mingw-w64-i686-make 4.2.1-2 (mingw-w64-i686-toolchain)
  26. GNU make utility to maintain groups of programs (mingw-w64)
  27. mingw32/mingw-w64-i686-perl 5.28.0-1
  28. A highly capable, feature-rich programming language (mingw-w64)
  29. mingw32/mingw-w64-i686-premake 4.3-2
  30. A build configuration tool. Describe your build using Lua and generate the
  31. project files for your specific toolset (mingw-w64)
  32. mingw32/mingw-w64-i686-sip 4.19.13-2
  33. A tool that makes it easy to create Python bindings for C and C++ libraries
  34. (mingw-w64)
  35. mingw64/mingw-w64-x86_64-ag 2.1.0.r1975.d83e205-1
  36. The Silver Searcher: An attempt to make something better than ack, which
  37. itself is better than grep (mingw-w64)
  38. mingw64/mingw-w64-x86_64-cmake 3.12.4-1
  39. A cross-platform open-source make system (mingw-w64)
  40. mingw64/mingw-w64-x86_64-cmake-doc-qt 3.12.4-1
  41. CMake documentation in Qt Help format
  42. mingw64/mingw-w64-x86_64-connect 1.105-1
  43. Make socket connection using SOCKS4/5 and HTTP tunnel (mingw-w64)
  44. mingw64/mingw-w64-x86_64-cotire 1.8.0_3.12-2
  45. CMake module to speed up builds (automated PCH, unity builds) (mingw-w64)
  46. mingw64/mingw-w64-x86_64-dmake 4.12.2.2-1
  47. Dmake is a make utility similar to GNU make or the Workshop dmake
  48. (mingw-w64)
  49. mingw64/mingw-w64-x86_64-extra-cmake-modules 5.50.0-1
  50. Extra CMake modules (mingw-w64)
  51. mingw64/mingw-w64-x86_64-gtk-engine-murrine 0.98.2-2
  52. GTK2 engine to make your desktop look like a 'murrina', an italian word
  53. meaning the art glass works done by Venicians glass blowers. (mingw-w64)
  54. mingw64/mingw-w64-x86_64-libmicrohttpd 0.9.61-1
  55. GNU libmicrohttpd is a small C library that is supposed to make it easy to
  56. run an HTTP server as part of another application (mingw-w64)
  57. mingw64/mingw-w64-x86_64-make 4.2.1-2 (mingw-w64-x86_64-toolchain)
  58. GNU make utility to maintain groups of programs (mingw-w64)
  59. mingw64/mingw-w64-x86_64-perl 5.28.0-1
  60. A highly capable, feature-rich programming language (mingw-w64)
  61. mingw64/mingw-w64-x86_64-premake 4.3-2
  62. A build configuration tool. Describe your build using Lua and generate the
  63. project files for your specific toolset (mingw-w64)
  64. mingw64/mingw-w64-x86_64-sip 4.19.13-2
  65. A tool that makes it easy to create Python bindings for C and C++ libraries
  66. (mingw-w64)
  67. msys/automake-wrapper 11-1 (base-devel)
  68. Wrapper scripts for automake and aclocal
  69. msys/automake1.10 1.10.3-3 (base-devel)
  70. A GNU tool for automatically creating Makefiles
  71. msys/automake1.11 1.11.6-3 (base-devel)
  72. A GNU tool for automatically creating Makefiles
  73. msys/automake1.12 1.12.6-3 (base-devel)
  74. A GNU tool for automatically creating Makefiles
  75. msys/automake1.13 1.13.4-4 (base-devel)
  76. A GNU tool for automatically creating Makefiles
  77. msys/automake1.14 1.14.1-3 (base-devel)
  78. A GNU tool for automatically creating Makefiles
  79. msys/automake1.15 1.15.1-1 (base-devel)
  80. A GNU tool for automatically creating Makefiles
  81. msys/automake1.16 1.16.1-1 (base-devel)
  82. A GNU tool for automatically creating Makefiles
  83. msys/automake1.6 1.6.3-2 (base-devel)
  84. A GNU tool for automatically creating Makefiles
  85. msys/automake1.7 1.7.9-2 (base-devel)
  86. A GNU tool for automatically creating Makefiles
  87. msys/automake1.8 1.8.5-3 (base-devel)
  88. A GNU tool for automatically creating Makefiles
  89. msys/automake1.9 1.9.6-2 (base-devel)
  90. A GNU tool for automatically creating Makefiles
  91. msys/cmake 3.12.4-1
  92. A cross-platform open-source make system
  93. msys/colormake-git r8.9c1d2e6-1
  94. Colorized build output
  95. msys/icmake 9.02.08-1
  96. A program maintenance (make) utility using a C-like grammar
  97. msys/make 4.2.1-1 (base-devel)
  98. GNU make utility to maintain groups of programs
  99. msys/make-git 4.1.8.g292da6f-1
  100. GNU make utility to maintain groups of programs
  101. msys/perl 5.28.1-1 (base-devel)
  102. A highly capable, feature-rich programming language
  103. msys/perl-ExtUtils-MakeMaker 7.34-1 (perl-modules)
  104. ExtUtils::MakeMaker - Create a module Makefile
  105. msys/perl-Test-NoWarnings 1.04-1 (perl-modules)
  106. Make sure you didn't emit any warnings while testing
  107. msys/remake-git 4.1.2957.e3e34dd9-1
  108. Enhanced GNU Make - tracing, error reporting, debugging, profiling and more
  109. msys/sharutils 4.15.2-1
  110. Makes so-called shell archives out of many files

安装:

  1. pc@pc-PC MINGW64 ~
  2. # pacman -S msys/make
  3. 正在解决依赖关系...
  4. 正在查找软件包冲突...
  5. 软件包 (1) make-4.2.1-1
  6. 下载大小: 0.41 MiB
  7. 全部安装大小: 1.22 MiB
  8. :: 进行安装吗? [Y/n] y
  9. :: 正在获取软件包......
  10. make-4.2.1-1-x86_64 414.8 KiB 334K/s 00:01 [#####################] 100%
  11. (1/1) 正在检查密钥环里的密钥 [#####################] 100%
  12. (1/1) 正在检查软件包完整性 [#####################] 100%
  13. (1/1) 正在加载软件包文件 [#####################] 100%
  14. (1/1) 正在检查文件冲突 [#####################] 100%
  15. (1/1) 正在检查可用硬盘空间 [#####################] 100%
  16. :: 正在处理软件包的变化...
  17. (1/1) 正在安装 make [#####################] 100%
  18. pc@pc-PC MINGW64 ~

测试

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

下载 gcc

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

输入:pacman -Ss gcc

得到:

  1. pc@pc-PC MINGW64 ~
  2. # pacman -Ss gcc
  3. mingw32/mingw-w64-i686-gcc 7.3.0-2 (mingw-w64-i686-toolchain)
  4. GNU Compiler Collection (C,C++,OpenMP) for MinGW-w64
  5. mingw32/mingw-w64-i686-gcc-ada 7.3.0-2 (mingw-w64-i686-toolchain)
  6. GNU Compiler Collection (Ada) for MinGW-w64
  7. mingw32/mingw-w64-i686-gcc-fortran 7.3.0-2 (mingw-w64-i686-toolchain)
  8. GNU Compiler Collection (Fortran) for MinGW-w64
  9. mingw32/mingw-w64-i686-gcc-libgfortran 7.3.0-2 (mingw-w64-i686-toolchain)
  10. GNU Compiler Collection (libgfortran) for MinGW-w64
  11. mingw32/mingw-w64-i686-gcc-libs 7.3.0-2 (mingw-w64-i686-toolchain)
  12. GNU Compiler Collection (libraries) for MinGW-w64
  13. mingw32/mingw-w64-i686-gcc-objc 7.3.0-2 (mingw-w64-i686-toolchain)
  14. GNU Compiler Collection (ObjC,Obj-C++) for MinGW-w64
  15. mingw32/mingw-w64-i686-lcov 1.13-2
  16. front-end for GCC's coverage testing tool gcov
  17. mingw32/mingw-w64-i686-perl 5.28.0-1
  18. A highly capable, feature-rich programming language (mingw-w64)
  19. mingw64/mingw-w64-x86_64-gcc 8.2.1+20181130-1 (mingw-w64-x86_64-toolchain)
  20. GNU Compiler Collection (C,C++,OpenMP) for MinGW-w64
  21. mingw64/mingw-w64-x86_64-gcc-ada 8.2.1+20181130-1 (mingw-w64-x86_64-toolchain)
  22. GNU Compiler Collection (Ada) for MinGW-w64
  23. mingw64/mingw-w64-x86_64-gcc-fortran 8.2.1+20181130-1 (mingw-w64-x86_64-toolchain)
  24. GNU Compiler Collection (Fortran) for MinGW-w64
  25. mingw64/mingw-w64-x86_64-gcc-libgfortran 8.2.1+20181130-1 (mingw-w64-x86_64-toolchain)
  26. GNU Compiler Collection (libgfortran) for MinGW-w64
  27. mingw64/mingw-w64-x86_64-gcc-libs 8.2.1+20181130-1 (mingw-w64-x86_64-toolchain)
  28. GNU Compiler Collection (libraries) for MinGW-w64
  29. mingw64/mingw-w64-x86_64-gcc-objc 8.2.1+20181130-1 (mingw-w64-x86_64-toolchain)
  30. GNU Compiler Collection (ObjC,Obj-C++) for MinGW-w64
  31. mingw64/mingw-w64-x86_64-lcov 1.13-2
  32. front-end for GCC's coverage testing tool gcov
  33. mingw64/mingw-w64-x86_64-perl 5.28.0-1
  34. A highly capable, feature-rich programming language (mingw-w64)
  35. msys/gcc 7.3.0-3 (msys2-devel)
  36. The GNU Compiler Collection - C and C++ frontends
  37. msys/gcc-fortran 7.3.0-3 (msys2-devel)
  38. Fortran front-end for GCC
  39. msys/gcc-libs 7.3.0-3 (base) [已安装: 7.3.0-1]
  40. Runtime libraries shipped by GCC
  41. msys/mingw-w64-cross-gcc 7.3.0-2 (mingw-w64-cross-toolchain mingw-w64-cross)
  42. Cross GCC for the MinGW-w64

安装

  1. pc@pc-PC MINGW64 ~
  2. # pacman -S msys/gcc
  3. 正在解决依赖关系...
  4. 正在查找软件包冲突...
  5. 软件包 (9) binutils-2.30-1 gcc-libs-7.3.0-3 isl-0.19-1 mpc-1.1.0-1
  6. msys2-runtime-devel-2.11.2-1 msys2-w32api-headers-6.0.0.5223.7f9d8753-1
  7. msys2-w32api-runtime-6.0.0.5223.7f9d8753-1 windows-default-manifest-6.4-1
  8. gcc-7.3.0-3
  9. 下载大小: 41.22 MiB
  10. 全部安装大小: 276.50 MiB
  11. 净更新大小: 272.80 MiB
  12. :: 进行安装吗? [Y/n] y

 

 

 

 

 

 

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/442607
推荐阅读
相关标签
  

闽ICP备14008679号