Last active
August 1, 2017 21:11
-
-
Save Deleplace/bfaff085b813cd8c602a253ca45e46ac to your computer and use it in GitHub Desktop.
Trying the Go one-liner installer in a fresh GCE instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux instance-1 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 | |
The programs included with the Debian GNU/Linux system are free software; | |
the exact distribution terms for each program are described in the | |
individual files in /usr/share/doc/*/copyright. | |
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | |
permitted by applicable law. | |
deleplace@instance-1:~$ go | |
-bash: go: command not found | |
deleplace@instance-1:~$ env | grep GO | |
deleplace@instance-1:~$ curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x go_installer && ./go_inst | |
aller && rm go_installer | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 82 100 82 0 0 288 0 --:--:-- --:--:-- --:--:-- 288 | |
100 5057k 100 5057k 0 0 9650k 0 --:--:-- --:--:-- --:--:-- 9650k | |
Welcome to the Go installer! | |
Downloading Go version go1.8.3 to /home/deleplace/.go | |
This may take a bit of time... | |
Downloaded! | |
Setting up GOPATH | |
GOPATH has been set up! | |
One more thing! Run `source /home/deleplace/.bash_profile` to persist the | |
new environment variables to your current session, or open a | |
new shell prompt. | |
deleplace@instance-1:~$ go version | |
-bash: go: command not found | |
deleplace@instance-1:~$ env | grep GO | |
deleplace@instance-1:~$ source /home/deleplace/.bash_profile | |
deleplace@instance-1:~$ go version | |
go: cannot find GOROOT directory: /usr/local/go | |
deleplace@instance-1:~$ env | grep GO | |
GOPATH=/home/deleplace/go | |
deleplace@instance-1:~$ go | |
Go is a tool for managing Go source code. | |
Usage: | |
go command [arguments] | |
The commands are: | |
build compile packages and dependencies | |
clean remove object files | |
doc show documentation for package or symbol | |
env print Go environment information | |
bug start a bug report | |
fix run go tool fix on packages | |
fmt run gofmt on package sources | |
generate generate Go files by processing source | |
get download and install packages and dependencies | |
install compile and install packages and dependencies | |
list list packages | |
run compile and run Go program | |
test test packages | |
tool run specified go tool | |
version print Go version | |
vet run go tool vet on packages | |
Use "go help [command]" for more information about a command. | |
Additional help topics: | |
c calling between Go and C | |
buildmode description of build modes | |
filetype file types | |
gopath GOPATH environment variable | |
environment environment variables | |
importpath import path syntax | |
packages description of package lists | |
testflag description of testing flags | |
testfunc description of testing functions | |
Use "go help [topic]" for more information about that topic. |
Author
Deleplace
commented
Aug 1, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment