I’m having a few issues with getting this installed properly and I’d like to do the process so that it doesn’t require copy and pasting of files to repeat. I think some of the paths are wrong and perhaps inconsistent between runs. I’ve had issues where I would run the configure_dev script and not all libraries downloaded. Most of all I’ve had the issue that @Genma_Saotome mentioned above where there are missing dependencies.
I’ve cleaned my workspace and re-ran the installation from the beginning a few times and I’ve boiled down installation to:
**Install and Configure msys2**
* Update package database and base packages: pacman -Syu
* Update the rest of the packages: pacman -Su
* Install base dev packages: pacman -S --needed base-devel
* install gcc and make: pacman -S --needed mingw-w64-x86_64-toolchain
* install Git: pacman -S --disable-download-timeout --noconfirm git
* install go: pacman -S --disable-download-timeout --noconfirm mingw-w64-x86_64-go
* update .bashrc with path to local go install and remap gopath var to local install:
* export PATH=$PATH:/c/msys64/mingw64/lib/go/bin
* export GOPATH=$HOME/go
This is where my first questions is:
Are these paths correct? If I put just the “export GOPATH” line in the bashrc file (like the instructions say), when I run msys it cant find go. When I add the updated path to point to the local go installation, Go is recognized but I’m not sure if that throws off everything else.
My second question is:
In the check_deps.sh file, when creating the path to the go bin, I assume it’s supposed to point to the local msys installation. However when this is run: GO_BIN="$(echo “GOPATH" | cut -d: -f1)/bin" it results in GO_BIN being "C:\bin" which, obviously, doesn't point to where the local go/bin directory is. The current GOPATH variables points to a location that go is not actually installed. Should this be GO_BIN = "(go env GOROOT)”/bin instead? If not, am I doing something wrong in the installation phase of things that is putting the installations in the wrong place?