MSYS2: Development environment construction

*Environment introduction

Mingw,mainly develops Windows programs using Linux's gnu tools, such as GCC and GDB

So it's mainly GCC, GDB ported to win, and added libraries.
Cygwin is a Linux development under Windows, which generates a Linux package.
So it's like a subsystem.
Msys is primarily mingw based on a Unix command line.

 

*Msys installation

https://sourceforge.net/projects/msys2/files/Base/x86_64/

#use the command line for installation in this directory
msys64/var/cache/pacman/pkg

#software sources can be modified by modifying three files under:
msys64\etc\pacman.d\

#View the installed software
pacman -Q
pacman -Sl

#Install the software
pacman -S mingw-w64-x86_64
pacman -S mingw-w64-x86_64-toolchain
pacman -S mingw-w64-i686-toolchain
pacman -S mingw-w64-x86_64-openssl
pacman -S base-devel
pacman -S vim
pacman -S emacs
pacman -S git
git config --global core.autocrlf input
git config --global mergetool.prompt false
git config --global difftool.prompt false

 

posted @ 2018-06-08 20:29  xinyueliu  阅读(33)  评论(0)    收藏  举报