旧行李 2013-07-05 01:50 采纳率: 25%
浏览 392
已采纳

如何在 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条回答 默认 最新

  • larry*wei 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 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64