Get the App
SLTechnology News&Howtos  ›  Development  › 

How to install the GE language environment in Linux system

Shulou Source: shulou.com Published: 2022-06-01 23:11:19 09月14日 Update

This article will explain in detail how to install the GE language environment in the Linux system. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

About the Go language: Go is an open source programming language that makes it easy to build simple, reliable and efficient software.

Go was developed by Robert Griesemer, Rob Pike and Ken Thompson in late 2007, and later joined Ian Lance Taylor, Russ Cox and others. Finally, it was open source in November 2009 and released a stable version of Go 1 in early 2012.

Now the development of Go is completely open and has an active community.

Linux system installation Go language specific steps: 1. Check the Linux system version: uname-a

2. Find the corresponding Go language installation package according to the system version. The Go language Chinese network address: https://studygolang.com/dl

\ 3. Change to the / usr/local directory, download the Go language installation package, and extract:

Cd / usr/local/ # download installation package wget https://studygolang.com/dl/golang/go1.14.1.linux-amd64.tar.gz # extract installation package tar-zxvf go1.14.1.linux-amd64.tar.gz\ 4. Set up a working directory. It is officially recommended to put it under / home/go and create three directories: bin (the path to the compiled executable file), pkg (the path to the generated .a file when compiling the package), and src (the source code path. Generally, our project is created under src).

Mkdir-p / home/go/bin/home/go/pkg / home/go/src\ 5. Configure environment variables:

# Open configuration vi / etc/profile # add export GOROOT=/usr/local/go export GOPATH=/home/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin # Save exit: wq # configuration takes effect source / etc/profile\ 6. Execute the go version command to see that the Go version is as follows, then the installation is successful.

Perform go env to view the configuration:

This is the end of the article on "how to install the GE language environment in the Linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Language system version configuration environment directory article path file more development compilation good practical successful three Chinese net content variable command Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Huawei MySQL MariaDB Microsoft