V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
qwe542398
V2EX  ›  问与答

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

  •  
  •   qwe542398 · Sep 1, 2014 · 4292 views
    This topic created in 4268 days ago, the information mentioned may be changed or developed.
    输入 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 replies    2014-09-02 12:26:52 +08:00
    mnhkahn
        1
    mnhkahn  
       Sep 2, 2014
    windows 安上了。sublime不能用这个,也没办法试。。。
    qwe542398
        2
    qwe542398  
    OP
       Sep 2, 2014
    @mnhkahn 这个问题自己解决了。。是因为不能用root用户,因为root用户那里貌似是没有go的相关变量 的。用普通用户执行就搞定了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3031 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:52 · PVG 12:52 · LAX 21:52 · JFK 00:52
    ♥ Do have faith in what you're doing.