MSYS2: Difference between revisions
Appearance
No edit summary |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
Msys2 is a collection of linux utilities which have been compiled for Windows.<br> | |||
It is a fork of Cygwin. | |||
==Getting Started== | ==Getting Started== | ||
| Line 25: | Line 26: | ||
==Running Windows Programs== | ==Running Windows Programs== | ||
* Go to <code>/c/msys64/ | * Go to <code>/c/msys64/msys2_shell.cmd</code> | ||
* Uncomment <code>MSYS2_PATH_TYPE=inherit</code> | * Uncomment <code>set MSYS2_PATH_TYPE=inherit</code> | ||
Latest revision as of 13:54, 14 July 2021
Msys2 is a collection of linux utilities which have been compiled for Windows.
It is a fork of Cygwin.
Getting Started
- Install Msys2 from https://www.msys2.org/
- Note: You can also install with
choco install msys2but you will need to set start menu shortcuts yourself
- Note: You can also install with
- Install common developer tools
pacman -S --needed base-devel gitpacman -S --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake
Package Management
# Install a package pacman -S <package> # Uninstall a package pacman -R <package>
Changing Home Dir
Set the following:
db_homein/etc/nsswitch.confdb_home: /c/Users/david
HOMEenvironment variable to%USERPROFILE%
Running Windows Programs
- Go to
/c/msys64/msys2_shell.cmd - Uncomment
set MSYS2_PATH_TYPE=inherit