MSYS2: Difference between revisions
No edit summary |
|||
Line 20: | Line 20: | ||
==Changing Home Dir== | ==Changing Home Dir== | ||
Set the following: | Set the following: | ||
* <code>db_home<code> in <code>/etc/nsswitch.conf</code> | * <code>db_home</code> in <code>/etc/nsswitch.conf</code> | ||
: e.g. | : e.g. | ||
<pre> | <pre> | ||
db_home: /c/Users/david | db_home: /c/Users/david | ||
</pre> | </pre> | ||
* <code>HOME</code> environment variable | * <code>HOME</code> environment variable to <code>%USERPROFILE%</code> |
Revision as of 16:17, 10 May 2020
Bash for windows
Getting Started
- Install Msys2 from https://www.msys2.org/
- Note: You can also install with
choco install msys2
but you will need to set start menu shortcuts yourself
- Note: You can also install with
- Install common developer tools
pacman -S --needed base-devel git
pacman -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_home
in/etc/nsswitch.conf
- e.g.
db_home: /c/Users/david
HOME
environment variable to%USERPROFILE%