duandianwen1723 2012-07-28 06:23
浏览 10
已采纳

开始行动

I've installed go (and tested it). When I run go env I see this:

$ go env
GOROOT="/usr/lib/go"
GOBIN=""
GOARCH="386"
GOCHAR="8"
GOOS="linux"
GOEXE=""
GOHOSTARCH="386"
GOHOSTOS="linux"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_386"
GOGCCFLAGS="-g -O2 -fPIC -m32 -pthread"
CGO_ENABLED="1"

However, when I run go get code.google.com/p/go-tour/gotour to get started with the tour locally (per the instructions), nothing seems to happen (I get no output, though it does take a couple of seconds to run, which makes me think something must have happened).

The instructions say to run the resultant gotour executable, but I can't find one. Anyone know what I'm doing wrong? I'm starting to feel like I must be pretty dumb, but I just can't figure out what running go get did (did it install anything? did it succeed?).

  • 写回答

3条回答 默认 最新

  • douxiajiao8445 2012-07-28 07:13
    关注

    Have you looked in /usr/lib/go/bin? Or, if you set a gopath $GOPATH/bin.

    By default, go get only prints if there was an error. The resultant executable is placed in the GOBIN, the GOROOT bin, or the GOPATH bin.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测