Download of MinGW Installation Manager (mingw-get) MinGW-Get Version 0.6.3 (Beta) Windows Execute File (mingw-get-setup.exe: 93,184 bytes) will begin shortly. If not so, click mingw-get-setup.exe. In MinGW Installation Manager, select 'Installation' ⇒ 'Update Catalogue' ⇒ Select all packages in 'Basic Setup' ⇒ continue. Setup environment variable PATH to include 'MINGWHOME/bin' where MINGWHOME is the MinGW installed directory that you have chosen in the previous step.
Noticed some warnings while installing MinGW on ArchWSL2. Also tested with ArchWSL but the install completes without any warnings there. # pacman -S mingw-w64-gcc resolving dependencies. Looking for conflicting packages. Install the TDM-GCC package into the directory c:mingw64, selecting to install all components. Select not to add MinGW-w64 to the PATH. After the installer completes, use the Start menu, right-click on 'Computer', select 'Properties' then 'Advanced Systems Settings' then 'Advanced' tab, click button 'Environment variables'. Install the TDM-GCC package into the directory c: mingw 64, selecting to install all components. Select not to add MinGW-w64 to the PATH. After the installer completes, use the Start menu, right-click on 'Computer', select 'Properties' then 'Advanced Systems Settings' then 'Advanced' tab, click button 'Environment variables'.
MSYS2 is a minimalist linux/unix shell environment for Windows.
Quote: 'A modern replacement for MSYS bringing recent versions of the GNU toolchains, Git and other common Unix command line tools to the Windows platform'
1. Install
Do all the steps listed here: http://msys2.github.io/
(troubleshooting guide here: https://github.com/msys2/msys2/wiki/MSYS2-installation )
Mingw-w64 Install
2. Set up proxies
Most corporate networks require proxy authentication before connecting to the Net.You can probably skip this section on your home PC.
Edit .bash_profile
Go to your MSYS $HOME
directory; in my case it's D:msys32homepapesch
.Using a text editor, create file .bash_profile
, as described below.Save it in UNIX format, then restart MSYS2 to apply the new settings.
3. Add packages
Core packages
Now that MSYS2 can connect to the internet, we can get the latest cool packages. But first get the latest system updates (one-off)
Hit [Enter] when prompted. Exit by closing the window, as instructed (don't use exit command).
Restart MSYS2 and get all the latest system updates with this command (should do this every week or so...)
If one of the core packages was updated during script run you MUST restart MSYS2.
Build a great linux toolkit
The following covers all the tools you're likely to use, but there are many more packages available
Example, searching for a new tool (do pacman -Ss to search for any unix tool you like)
If you're on 32 bit windows (poor sucker), choose the 'mingw32'/'i686' versions as per these examples:
Note on GPG keys
While installing the above packages, pacman
probably reported all sorts of warnings about gpg keys. These are used to authenticate the downloads. More info about setting up pacman
's GPG validation:
Or, you can turn it off completely. Edit /etc/pacman.conf
and uncomment the following line under [options]:
This will result in no signature checking, and you will not need to set up a keyring with pacman-key
.
4. Create RSA keys
This will save you from having to enter your password every time you log in to a remote server (via ssh, scp etc)
ssh-keygen
Only need to do this step once. Example: User baldrick
, on a local computer named england
ssh-copy-id
Copy your public key to remote server (ireland
):
Do this for each server you connect to over ssh/scp etc.
TROUBLESHOOTINGIf you get an error like this when running ssh-copy-id
Add the following to file ~/.ssh/config
:
Use scp/ssh more easily
Now you can scp
/ ssh
to the remote host without password prompt!
Install Mingw-w64 Compiler
5. Customise mintty
Installing Mingw W64 On Windows 7
Adjust the look and feel by clicking the 'M' icon at the top of the mintty window, and selecting 'Options...'
Disclaimer
Mingw W64 Sourceforge
This document is provided for information only, no guarantees. I have no association with MSYS2 or related projects.