This is a creation in Article, where the information may have evolved or changed.
Sublime3 Install Gosublime, start error
Sublime-text3gosublimeGOPATHmissed
Error message
After installing the Gosublime plugin, the following error has been reported SUBLIME-TEXT3 startup:
Solution Solutions
It can be seen from the lack of Gopath environment variables (Golang working directory in essence)
Programme I
- Add the GOPATH environment variable to the system and point to the working directory of Golang
- Different OS add environment variable way not the same, the specific method can be Baidu, the following list of Linux and Mac operation methods
echo 'export GOPATH=yourgolangpath' >> yourbashfile
source yourbashfile
Programme II
- Add the configuration file in the Settings-user of the Gosublime plugin as follows:
{
"env": {
"GOPATH": "yourgolangpath"
}
}
Author: King.han
January 3, 2015