搭建go开发环境时,出现GoSublime error: MarGo build failed的问题
来源:互联网 发布:csgo残局 知乎 编辑:程序博客网 时间:2024/04/25 18:57
在安装问go语言开发工具,Sublime Text Build 3083之后,再安装gocode和margo时,在安装margo那一步卡住了,出现了以下问题:
GoSublime error: MarGo build failed| > This is possibly a bug or miss-configuration of your environment.| > For more help, please file an issue with the following build output| > at: https://github.com/DisposaBoy/GoSublime/issues/new| > or alternatively, you may 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 be `(not set)`)| set.shell: []| env.shell: | shell.cmd: ['C:\\Windows\\system32\\cmd.exe', '/C', '${CMD}']
MarGo build failedgo get github.com/DisposaBoy/MarGo 之后才知道,这个工具已经被作者清理了,因此在github上搜索 MarGo之后,有几个结果
我选择了第一个搜索结果,(安装完之后可以使用但是和原来的MarGo的具体区别还没研究),可以使用这句语句在命令行输入go get github.com/slene/margo来安装
,安装完成之后在GOPATH目录下的bin文件夹会生成margo.exe的可执行文件,再将该可执行文件拷贝到Sublime Text 3083安装路径Data\Packages\User\GoSublime\windows-x64\bin下,并将文件名改为以下标为红色字的名字
<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']`
以下是我的电脑上的路径,仅供参考
重新启动sublime Text 3083即可
0 0
- 搭建go开发环境时,出现GoSublime error: MarGo build failed的问题
- 用sublime搭建基于GoSublime+gocode+MarGo的下载SublimeGO开发环境
- sublime搭建基于GoSublime+gocode+MarGo的下载SublimeGO开发环境
- Go 语言开发环境(Sublime Text+GoSublime)的配置
- Sublime 3搭建TypeScript开发环境出现build parameter问题
- 解决安装rails时出现 ERROR: Failed to build gem native extension. 的问题
- Golang/Go语言/Go IDE/Go windows环境搭建/Go自动提示编译器/GoSublime
- Golang/Go语言/Go IDE/Go windows环境搭建/Go自动提示编译器/GoSublime
- 【转】Golang/Go语言/Go IDE/Go windows环境搭建/Go自动提示编译器/GoSublime
- Golang/Go语言/Go IDE/Go windows环境搭建/Go自动提示编译器/GoSublime
- Golang/Go语言/Go IDE/Go windows环境搭建/Go自动提示编译器/GoSublime
- Golang/Go语言/Go IDE/Go windows环境搭建/Go自动提示编译器/GoSublime
- Ubuntu 配置 Go 语言开发环境(Sublime Text+GoSublime)
- go语言开发环境配置:sublime text3+gosublime+gocode
- Ubuntu 配置 Go 语言开发环境(Sublime Text+GoSublime)
- Ubuntu 配置 Go 语言开发环境(Sublime Text+GoSublime)
- Ubuntu 配置 Go 语言开发环境(Sublime Text+GoSublime)
- GO语言环境搭建 + Sublime text 3 + Git + MarGo + gocode 组合配置详解
- 赋值运算符的重载
- SQLite Android数据库详解
- 黑马程序员--动态类型检测
- Servlet的异常处理机制
- 【五校联考2015 9.5】送你一棵线段树
- 搭建go开发环境时,出现GoSublime error: MarGo build failed的问题
- Android数据存储
- Android 之数据存储--SharedPreferences
- Java 创建对象有哪几种方式
- 高效程序员的狂暴之路
- 架构设计:系统间通信(1)——概述从“聊天”开始上篇
- github-july-回文判断
- Hashmap实现原理
- keil 5.16a使用