℡Wang Yan 2013-07-05 01:50 采纳率: 100%
浏览 469
已采纳

如何在 Ubuntu 精确版中安装 Go 的当前版本

Running sudo apt-get install golang-stable, I get Go version go1.0.3. Is there any way to install go1.1.1?

转载于:https://stackoverflow.com/questions/17480044/how-to-install-the-current-version-of-go-in-ubuntu-precise

  • 写回答

13条回答 默认 最新

  • derek5. 2013-07-10 09:18
    关注

    I found a repo that has the latest versions: https://launchpad.net/~duh/+archive/golang/+packages. So basically do:

    sudo apt-get install python-software-properties  # 12.04
    sudo add-apt-repository ppa:duh/golang
    sudo apt-get update
    sudo apt-get install golang
    

    To confirm:

    go version
    

    which outputs in my case (Ubuntu precise)

    go version go1.1.1 linux/amd64
    

    From there just export the settings you're gonna need to bash_rc or equivalent:

    export GOROOT=/usr/lib/go
    export GOBIN=/usr/bin/go
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(12条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器