安装golang(1.9)

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

内容简介:版权声明:本文为博主原创文章,未经博主允许不得转载。 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

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

查看所有标签

猜你喜欢:

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

Think Python

Think Python

Allen B. Downey / O'Reilly Media / 2012-8-23 / GBP 29.99

Think Python is an introduction to Python programming for students with no programming experience. It starts with the most basic concepts of programming, and is carefully designed to define all terms ......一起来看看 《Think Python》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换