Configuration Golang and MSYS2 MingW64

 

  1. Add to Windows Path so that go knows where gcc is
    1. C:\msys64\mingw64\bin
  2. Add a new Environment Varible to Windows
    1. QT_MSYS2=true
  3. Add to MingW64 Terminal
    1. .bashrc file
      1. Add two lines at the bottom like so:
      2. export GOPATH=”/c/gowork”
      3. export PATH=”/c/Go/bin:$GOPATH/bin:$PATH”
    2. .profile
      1. GOPATH=”/c/gowork”
      2. PATH=”/c/Go/bin:$GOPATH/bin:$PATH”
  4. After restarting MSYS2 MingW32 terminal you should now be able to see Go with:
    1. go version

Leave a Reply

Your email address will not be published. Required fields are marked *