V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
qwe542398
V2EX  ›  问与答

在 ubuntu 下安装 gocode 遇到了问题。。求大神

  •  
  •   qwe542398 · 2014-09-01 20:33:10 +08:00 · 3555 次点击
    这是一个创建于 3529 天前的主题,其中的信息可能已经有所发展或是发生改变。
    输入 sudo go get github.com/nsf/gocode 后

    命令行提示下面这段


    # github.com/nsf/gocode
    /usr/lib/go/src/pkg/github.com/nsf/gocode/utils.go:160: ctx.ReleaseTags undefined (type *build.Context has no field or method ReleaseTags)
    /usr/lib/go/src/pkg/github.com/nsf/gocode/utils.go:161: ctx.InstallSuffix undefined (type *build.Context has no field or method InstallSuffix)
    /usr/lib/go/src/pkg/github.com/nsf/gocode/utils.go:175: unknown build.Context field 'ReleaseTags' in struct literal
    /usr/lib/go/src/pkg/github.com/nsf/gocode/utils.go:176: unknown build.Context field 'InstallSuffix' in struct literal
    2 条回复    2014-09-02 12:26:52 +08:00
    mnhkahn
        1
    mnhkahn  
       2014-09-02 09:39:09 +08:00
    windows 安上了。sublime不能用这个,也没办法试。。。
    qwe542398
        2
    qwe542398  
    OP
       2014-09-02 12:26:52 +08:00
    @mnhkahn 这个问题自己解决了。。是因为不能用root用户,因为root用户那里貌似是没有go的相关变量 的。用普通用户执行就搞定了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2567 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:28 · PVG 21:28 · LAX 06:28 · JFK 09:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.