作者:ygz
时间:20240724
地点:hbyt
下载C++ 经历
MSYS2
文心:
mysy2实际上是一个拼写错误,正确的应该是MSYS2。MSYS2(Minimal SYStem 2)是一个MSYS的独立改写版本,主要用于shell命令行开发环境。以下是对MSYS2的详细介绍:
一、MSYS2概述
定义:MSYS2是一个在Cygwin(POSIX兼容性层)和MinGW-w64(从MinGW派生)基础上产生的Windows软件,追求更好的互操作性。
平台:该软件专为Windows平台设计。
语言:支持多国语言。
开发商:包括Alexpux、martell、mingwandroid、niXman等。
二、MSYS2的特点
集成pacman:MSYS2与MSYS和Cygwin的主要区别在于它移植了Arch Linux的软件包管理系统Pacman,这使得用户可以更方便地管理软件包。
提供Linux环境:MSYS2提供了bash shell等Linux环境,让用户可以在Windows上体验到类似Linux的命令行操作。
版本控制软件:内置了版本控制软件如git和hg,方便用户进行版本控制操作。
MinGW-w64工具链:集成了MinGW-w64工具链,支持Windows下的GCC编译环境。
丰富的软件仓库:MSYS2拥有丰富的软件仓库,包含大量预编译的开源软件包,用户可以直接安装使用
官网
MSYS2 is a collection of tools and libraries providing you with an
easy-to-use environment for building, installing and running native Windows software
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.
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 3200 pre-built packages ready to install.
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.