MSYS2: Difference between revisions
No edit summary |
No edit summary |
||
(8 intermediate revisions 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 5: | Line 6: | ||
** Note: You can also install with <code>choco install msys2</code> but you will need to set start menu shortcuts yourself | ** Note: You can also install with <code>choco install msys2</code> but you will need to set start menu shortcuts yourself | ||
* Install common developer tools | * Install common developer tools | ||
** <code>pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake | ** <code>pacman -S --needed base-devel git</code> | ||
** <code>pacman -S --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake</code> | |||
==Package Management== | ==Package Management== | ||
Line 17: | Line 18: | ||
pacman -R <package> | pacman -R <package> | ||
</pre> | </pre> | ||
==Changing Home Dir== | |||
Set the following: | |||
* <code>db_home</code> in <code>/etc/nsswitch.conf</code> | |||
*:<pre>db_home: /c/Users/david</pre> | |||
* <code>HOME</code> environment variable to <code>%USERPROFILE%</code> | |||
==Running Windows Programs== | |||
* Go to <code>/c/msys64/msys2_shell.cmd</code> | |||
* Uncomment <code>set MSYS2_PATH_TYPE=inherit</code> |