首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在ubuntu上安装go和goisntall进行doozer安装

如何在ubuntu上安装go和goisntall进行doozer安装
EN

Stack Overflow用户
提问于 2012-07-07 08:14:56
回答 2查看 674关注 0票数 0

我使用的是ubuntu 10.04和12.04。

我正在尝试安装doozer和doozer,我有一个艰难的时间来处理go不高。我需要为安装制作一个厨师食谱。

安装doozer的说明如下:

代码语言:javascript
复制
goinstall github.com/ha/doozer

如何获取goinstall?

编辑:使用Go 1.0.2和go install,我得到以下输出:

代码语言:javascript
复制
github.com/ha/doozer
# github.com/ha/doozer
/usr/local/go/src/pkg/github.com/ha/doozer/conn.go:184: cannot use &t.req (type *request) as type proto.Message in function argument:
    *request does not implement proto.Message (missing ProtoMessage method)
/usr/local/go/src/pkg/github.com/ha/doozer/conn.go:198: cannot use &r (type *response) as type proto.Message in function argument:
    *response does not implement proto.Message (missing ProtoMessage method)
/usr/local/go/src/pkg/github.com/ha/doozer/conn.go:294: undefined: proto.GetInt64
/usr/local/go/src/pkg/github.com/ha/doozer/conn.go:326: undefined: proto.GetInt64
/usr/local/go/src/pkg/github.com/ha/doozer/conn.go:412: undefined: proto.GetInt32
/usr/local/go/src/pkg/github.com/ha/doozer/conn.go:412: undefined: proto.GetInt64
/usr/local/go/src/pkg/github.com/ha/doozer/err.go:33: cannot call non-function proto.GetString (type struct {})
/usr/local/go/src/pkg/github.com/ha/doozer/msg.pb.go:127: cannot use this (type *request) as type proto.Message in function argument:
    *request does not implement proto.Message (missing ProtoMessage method)
/usr/local/go/src/pkg/github.com/ha/doozer/msg.pb.go:142: cannot use this (type *response) as type proto.Message in function argument:
    *response does not implement proto.Message (missing ProtoMessage method)
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2012-07-07 09:44:16

doozerdoozerd包使用的是旧的、过时的Go版本。对于当前版本,Go 1,获取源代码:

代码语言:javascript
复制
go get -v github.com/ha/doozer

go get -v github.com/ha/doozerd

将源代码升级到Go 1,然后使用go install

代码语言:javascript
复制
go install -v github.com/ha/doozer

go install -v github.com/ha/doozerd

此外,pretty.go已重命名为pretty

参见Command go

票数 2
EN

Stack Overflow用户

发布于 2012-07-14 18:30:30

仅供参考(转到准备)

代码语言:javascript
复制
$ cd /var/tmp
$ wget http://go.googlecode.com/files/go1.0.2.linux-386.tar.gz
$ tar xvfz go1...tar.gz
$ export GOROOT=/var/tmp/go
$ export PATH=$PATH:$GOROOT/bin
$ go
Go is a tool for managing Go source code.

Usage:

    go command [arguments]

The commands are:

    build       compile packages and dependencies
    clean       remove object files
    doc         run godoc on package sources
    env         print Go environment information
    fix         run go tool fix on packages
    fmt         run gofmt on package sources
    get         download and install packages and dependencies
    install     compile and install packages and dependencies
    list        list packages
    run         compile and run Go program
    test        test packages
    tool        run specified go tool
    version     print Go version
    vet         run go tool vet on packages

Use "go help [command]" for more information about a command.

Additional help topics:

    gopath      GOPATH environment variable
    packages    description of package lists
    remote      remote import path syntax
    testflag    description of testing flags
    testfunc    description of testing functions

Use "go help [topic]" for more information about that topic.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11371199

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档