MSYS2

Software Distribution and Building Platform for Windows

MSYS2 Windows软件分发和构建平台

MSYS2 is a collection of tools and libraries providing you with an easy-to-use environment for building, installing and running native Windows software.

MSYS2是一个工具和库的集合,为您构建、安装和运行本机Windows软件提供了一个易于使用的环境。

It consists of a command line terminal called mintty, bash, version control systems like git and subversion, tools like tar and awk and even build systems like autotools, all based on a modified version of Cygwin. Despite some of these central parts being based on Cygwin, the main focus of MSYS2 is to provide a build environment for native Windows software and the Cygwin-using parts are kept at a minimum. MSYS2 provides up-to-date native builds for GCC, mingw-w64, CPython, CMake, Meson, OpenSSL, FFmpeg, Rust, Ruby, just to name a few.

​它包括一个名为mintty、bash的命令行终端、git和subversion等版本控制系统、tar和awk等工具,甚至还有autotools等构建系统,所有这些都基于Cygwin的修改版本。尽管其中一些核心部件基于Cygwin,但MSYS2的主要重点是为本机Windows软件提供构建环境,并且使用Cygwin的部件保持在最低限度。MSYS2为GCC、mingw-w64、CPython、CMake、Meson、OpenSSL、FFmpeg、Rust、Ruby等提供了最新的本机版本。

To provide easy installation of packages and a way to keep them updated it features a package management system called Pacman, which should be familiar to Arch Linux users. It brings many powerful features such as dependency resolution and simple complete system upgrades, as well as straight-forward and reproducible package building. Our package repository contains more than 2500 pre-built packages ready to install.

​为了方便安装软件包并保持更新,它提供了一个名为Pacman的软件包管理系统,Arch Linux用户应该熟悉该系统。它带来了许多强大的功能,如依赖解析和简单的完整系统升级,以及直接和可复制的包构建。我们的软件包存储库包含2500多个准备安装的预构建软件包。

For more details see 'What is MSYS2?' which also compares MSYS2 to other software distributions and development environments like Cygwin, WSL, Chocolatey, Scoop, ... and 'Who Is Using MSYS2?' to see which projects are using MSYS2 and what for.

​有关更多详细信息,请参阅“什么是MSYS2?”它还将MSYS2与Cygwin、WSL、Chocolate、Scoop等其他软件发行版和开发环境进行了比较。。。“谁在使用MSYS2?”查看哪些项目正在使用MSYS2以及它的用途。

Installation

安装

1.Download the installer: msys2-x86_64-20220319.exe

下载安装程序:msys2-x86_64-20220319.exe

Verify with SHA256 checksum bd7cac636c1bf3a1821b9694ba3f49a92a6de1458d0ccc78f36338a393892e71 or GPG signature by 0xf7a49b0ec.

2.Run the installer. MSYS2 requires 64 bit Windows 7 or newer.

运行安装程序。MSYS2需要64位Windows 7或更高版本。

Enter your desired Installation Folder (short ASCII-only path on a NTFS volume, no accents, no spaces, no symlinks, no subst or network drives, no FAT).

输入所需的安装文件夹(NTFS卷上只有短ASCII路径、无重音符号、无空格、无符号链接、无subst或网络驱动器、无FAT)。

3.When done, tick Run MSYS2 now.

完成后,勾选立即运行MSYS2。

4.Update the package database and base packages. Unless your setup file is very recent, it will take two steps. First run pacman -Syu:

更新包数据库和基本包。除非您的安装文件是最新的,否则需要两个步骤。第一次运行pacman-Syu:

$ pacman -Syu
:: Synchronizing package databases...mingw32                        805.0 KiBmingw32.sig                    438.0   Bmingw64                        807.9 KiBmingw64.sig                    438.0   Bmsys                           289.3 KiBmsys.sig                       438.0   B
:: Starting core system upgrade...
warning: terminate other MSYS2 programs before proceeding
resolving dependencies...
looking for conflicting packages...Packages (6) bash-5.1.004-1  filesystem-2021.01-1mintty-1~3.4.4-1  msys2-runtime-3.1.7-4pacman-5.2.2-9  pacman-mirrors-20201208-1Total Download Size:   11.05 MiB
Total Installed Size:  53.92 MiB
Net Upgrade Size:      -1.24 MiB:: Proceed with installation? [Y/n]
:: Retrieving packages...bash-5.1.004-1-x86_64            2.3 MiBfilesystem-2021.01-1-any        33.2 KiBmintty-1~3.4.4-1-x86_64        767.2 KiBmsys2-runtime-3.1.7-4-x86_64     2.6 MiBpacman-mirrors-20201208-1-any    3.8 KiBpacman-5.2.2-9-x86_64            5.4 MiB
(6/6) checking keys in keyring       100%
(6/6) checking package integrity     100%
(6/6) loading package files          100%
(6/6) checking for file conflicts    100%
(6/6) checking available disk space  100%
:: Processing package changes...
(1/6) upgrading bash                 100%
(2/6) upgrading filesystem           100%
(3/6) upgrading mintty               100%
(4/6) upgrading msys2-runtime        100%
(5/6) upgrading pacman-mirrors       100%
(6/6) upgrading pacman               100%
:: To complete this update all MSYS2 processes including this terminal will be closed. Confirm to proceed [Y/n]

5.Run "MSYS2 MSYS" from Start menu. Update the rest of the base packages with pacman -Su:

从开始菜单运行“MSYS2 MSYS”。使用pacman-Su更新其余的基本软件包:

$ pacman -Su
:: Starting core system upgrade...there is nothing to do
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...Packages (20) base-2020.12-1  bsdtar-3.5.0-1[... more packages listed ...]Total Download Size:   12.82 MiB
Total Installed Size:  44.25 MiB
Net Upgrade Size:       3.01 MiB:: Proceed with installation? [Y/n]
[... downloading and installation continues ...]

6.Now MSYS2 is ready for you. You will probably want to install some tools and the mingw-w64 GCC to start compiling:

现在MSYS2已经为您准备好了。您可能需要安装一些工具和mingw-w64 GCC来开始编译:

$ pacman -S --needed base-devel mingw-w64-x86_64-toolchain
warning: file-5.39-2 is up to date -- skipping
[... more warnings ...]
:: There are 48 members in group base-devel:
:: Repository msys1) asciidoc  2) autoconf  3) autoconf2.13  4) autogen[... more packages listed ...]Enter a selection (default=all):
:: There are 19 members in group mingw-w64-x86_64-toolchain:
:: Repository mingw641) mingw-w64-x86_64-binutils  2) mingw-w64-x86_64-crt-git[... more packages listed ...]Enter a selection (default=all):
resolving dependencies...
looking for conflicting packages...Packages (123) docbook-xml-4.5-2  docbook-xsl-1.79.2-1[... more packages listed ...]m4-1.4.18-2  make-4.3-1  man-db-2.9.3-1mingw-w64-x86_64-binutils-2.35.1-3mingw-w64-x86_64-crt-git-9.0.0.6090.ad98746a-1mingw-w64-x86_64-gcc-10.2.0-6mingw-w64-x86_64-gcc-ada-10.2.0-6mingw-w64-x86_64-gcc-fortran-10.2.0-6mingw-w64-x86_64-gcc-libgfortran-10.2.0-6mingw-w64-x86_64-gcc-libs-10.2.0-6mingw-w64-x86_64-gcc-objc-10.2.0-6mingw-w64-x86_64-gdb-10.1-2mingw-w64-x86_64-gdb-multiarch-10.1-2[... more packages listed ...]Total Download Size:    196.15 MiB
Total Installed Size:  1254.96 MiB:: Proceed with installation? [Y/n]
[... downloading and installation continues ...]

7.To start building using the mingw-w64 GCC, close this window and run "MSYS MinGW 64-bit" from Start menu. Now you can call make or gcc to build software for Windows.

要开始使用mingw-w64 GCC构建,请关闭此窗口并从“开始”菜单运行“MSYS mingw 64位”。现在,您可以调用make或gcc来为Windows构建软件。

8.Check out the introduction page to learn which Start menu item to use when and which packages to install. Take look at Detailed MSYS2 install guide for troubleshooting and additional details on how to keep your MSYS2 up-to-date.

​查看简介页面,了解何时使用“开始”菜单项以及安装哪些软件包。查看详细的MSYS2安装指南,了解疑难解答,以及如何保持MSYS2最新的其他详细信息。

MSYS2 Windows软件分发和构建平台相关推荐

  1. 域管理:windows server分发与分配软件

    域管理:windows server分发与分配软件 1.分发与分配 用户配置>分发:把某个软件分发给用户以后,用户下次在任意计算机登录时,所部属的软件都会出现在用户计算机的"添加和删除 ...

  2. Windows server 2022 组策略软件分发

    1.首先们需要安装ad域并让另一个系统加入域这里可以查看我的上一篇文章 http://t.csdn.cn/xMVxa 在服务器中创建一个文件夹,并给文件夹起名. 2.右键属性-->共享--> ...

  3. 针对教育和软件行业的多平台Java勒索软件分析

    0x01 基本信息 Tycoon是针对Windows®和Linux®的多平台Java勒索软件,至少从2019年12月起就在野外活动,它以木马Java运行时环境(JRE)的形式部署,并利用晦涩的Java ...

  4. 汇聚150万开发者,华为云致力于成为最佳应用构建平台

    今天,在HUAWEI CONNECT 2020上,华为云业务总裁郑叶来发表了<普惠AI,华为云与全球开发者共成长>的主题演讲. 为了更好的帮助开发者从技术创新到商业变现,华为云致力于成为最 ...

  5. linux下windows软件的代替品

    此文为网上找到的一篇博文稍后会根据个人日常使用习惯重新分化 ,希望能对想早日进入linux下工作的朋友有些帮助 Linux下数百种 Windows 软件的免费替代品列表 程序所执行任务的描述 Wind ...

  6. Linux下数百种Windows软件的免费替代品列表

    Linux下数百种 Windows 软件的免费替代品列表 程序所执行任务的描述 Windows Linux 1) 网络连接 网页浏览器 微软 IE,网景 Netscape / Mozilla, Ope ...

  7. 软件需求工程 高校教学平台 需求变更控制文档

    点击查看 软件需求工程 高校教学平台 卷首语 文章目录 描述 目的 描述 范围 定义 参考文献 角色与职责 变更请求状态 开始条件 任务 变更请求REQ-001 变更请求REQ-002 变更请求REQ ...

  8. 实战Windows Azure:微软云计算平台技术详解

    实战Windows Azure:微软云计算平台技术详解  徐子岩 编著 ISBN978-7-121-14547-6   2011年10月出版 定价:69.00 元 16开 440页 宣传语:什么是真正 ...

  9. 组策略 从入门到精通(十)通过组策略进行软件分发和卸载

    其实在前面windows server 2008的一些博文中,已经介绍了如何通过组策略进行软件的分发,在windows server 2003中有些无法完成的软件分发工作在windows server ...

最新文章

  1. yoman不压缩html,使用Yeoman构建vuejs
  2. HTML试题及答案(总结)
  3. 2021-2025年中国灯光调光开关行业市场供需与战略研究报告
  4. 【poj 2891】Strange Way to Express Integers(数论--拓展欧几里德 求解同余方程组 模版题)...
  5. java ide 的优劣_Java程序员的困惑 Java IDE到底怎么选
  6. N 个互异数的数组的平均逆序数
  7. repo forall -c 用法
  8. [渝粤教育] 中国地质大学 事故应急救援 复习题 (2)
  9. C#的yield return是怎么被调用到的?
  10. SolidWorks2016 从入门到入坟 下载安装+画图
  11. (工具)政企版WPS-没广告弹窗超简洁
  12. win7系统搭建PHP+Mysql+Apache环境+部署ecshop项目
  13. SourceTree git 工作流
  14. linux - ab测试工具
  15. 产品经理常用的三款工具
  16. Nodejs base64编码与解码
  17. 双系统从Windows下分出空间给Ubuntu的空间不够的分区
  18. UTM坐标系区号选择
  19. 电子电路测试软件,清华大学出版社-图书详情-《电子电路软件仿真实验教程》...
  20. ogg同步迁移数据库

热门文章

  1. Python实现JD京东授权后物流轨迹查询接口(对接青龙系统对外开放接口)
  2. c/c++ 大整数除法
  3. CODEVS 1690 开关灯
  4. GO二进制字符串转十进制数原生算法
  5. poj 2942-圆桌骑士(点双连通分量+二分图)
  6. GEE中遥感影像反演水深遇到的一些问题
  7. Mockito的入门及使用
  8. 周期置换加密算法用c语言实现,密码学
  9. 南京理工大学紫金学院计算机网络试卷,0信息技术试题a卷答案
  10. OpenCV版本向下兼容