This is a creation in Article, where the information may have evolved or changed.
After installing the Ask Go Language development tool, Sublime Text Build 3083, and then installing Gocode and Margo, when the installation Margo that step stuck, the following issues occurred:
Gosublime Error:margo Build failed| > This is possibly a bug or miss-configuration of your environment.| > For more help, please file a issue with the following build output| > at:https://github.com/disposaboy/gosublime/issues/new| > or alternatively, you could send an email to:gosublime@dby.me| > | > | > cmd: ' [' D:\\Program files\\go\\bin\\go.exe ', ' build ', '-V ', '-X ', '-o ', ' Gosublime.margo_r14.12.06-1_go1.4.2.exe ' , ' Gosubli.me/margo ' | > stdout: ' | > stderr: ' work=~\appdata\local\temp\go-build300617651| > runtime| > Go build runtime:windows/amd64 must be bootstrapped using Make.bat ' | > Exception: ' None ' | Install state:busy| sublime.version:3083| sublime.channel:stable| about.ann:a14.02.25-1| about.version:r14.12.06-1| version:r14.12.06-1| platform:windows-x64| ~bin:d:\software\sublime text\sublime text Build 3083 x64\data\packages\user\gosublime\windows-x64\bin| Margo.exe: ~bin\gosublime.margo_r14.12.06-1_go1.4.2.exe (missing) | Go.exe:d:\program Files\go\bin\go.exe (OK) | go.version:go1.4.2| Goroot:d:\program files\go| Gopath:h:/go/development| GOBIN: (not set) (should usually is ' (not set) ') | Set.shell: []| Env.shell: | Shell.cmd: [' c:\\windows\\system32\\cmd.exe ', '/C ', ' ${cmd} ']
The key is:
MarGo Build failed
Go get Github.com/disposaboy/margo Only then know that the tool has been cleaned up by the author, so after searching for MarGo on GitHub, there are several results
I chose the first search results, (after installation can be used but with the original Margo the specific difference has not been studied), you can use this sentence to enter the command line go get Github.com/slene/margo to install
, the Bin folder in the Gopath directory after the installation is complete generates an Margo.exe executable file and copies the executable to the sublime Text 3083 installation path data\packages\user\gosublime\ Windows-x64\bin, and change the file name to the following name labeled Red
<pre name= "code" class= "plain" > > cmd: ' [' D:\\Program files\\go\\bin\\go.exe ', ' build ', '-V ', '-X ', '-o ', ' <span style= "color: #ff0000;" >gosublime.margo_r14.12.06-1_go1.4.2.exe</span> ', ' Gosubli.me/margo '] '
The following is the path on my computer, for reference only
Restart Sublime Text 3083 to