安装golang(1.9)

栏目: Go · 发布时间: 7年前

内容简介:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011019726/article/details/77584708

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011019726/article/details/77584708

golang1.5以后实现了自编译,也就是用golang开发golang。因此在安装新版本的golang时需要先安装一个golang1.4版本

安装golang1.4

wget https://storage.googleapis.com/golang/go1.4-bootstrap-20170531.tar.gz
tar -xf go1.4-bootstrap-20170531.tar.gz
cd go/src
./make.bash

成功后信息
Installed Go for linux/amd64 in /home/test/go
Installed commands in /home/test/go/bin

mv go go1.4

安装golang1.9

wget https://storage.googleapis.com/golang/go1.9.src.tar.gz
tar -xf go1.9.src.tar.gz
cd go/src
./all.bash

mv go /usr/local/go1.9
vim /etc/profile
source /etc/profile
export PATH=$PATH:/usr/local/go1.9/bin
go version
下载安装地址: https://golang.org/doc/install/source?download=go1.9.src.tar.gz

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Design for Hackers

Design for Hackers

David Kadavy / Wiley / 2011-10-18 / USD 39.99

Discover the techniques behind beautiful design?by deconstructing designs to understand them The term ?hacker? has been redefined to consist of anyone who has an insatiable curiosity as to how thin......一起来看看 《Design for Hackers》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试