In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install GE language in Linux". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to install GE language in Linux".
Go, also known as golang, is an open source programming language originally developed by Google. It is designed to follow the three principles of simplicity, security and speed. The Go language has a variety of debugging, testing, analysis, and code review tools, and now that the Go language and tools are available in the source libraries of most Linux distributions, I'll show you how to install the Go language for Linux.
Install the go language for Ubuntu, Debian, or Linux Mint
All Debian-based Linux distributions can be installed using the apt-get command:
Sudo apt-get install golang
To view the Go language version of the current system installation, you can use the following command:
Go version
Since the Go code must be saved in the workspace (workspace), we must create a workspace directory in the Home directory (for example, ~ / workspace) and define the GOPATH environment variable to point to this directory, which will be used by the Go tool to save and edit binaries.
Mkdir ~ / workspaceecho 'export GOPATH= "$HOME/workspace" > > ~ / .bashrcsource ~ / .bashrc
Depending on your needs, we can install Go tools using apt-get:
Sudo apt-cache search golang
Install the go language for Fedora, CentOS, or RHEL
All Red Hat-based Linux distributions can be installed using the yum command:
Sudo yum install golang
To view the Go language version of the current system installation, you can use the following command:
Go version
Next, create a workspace directory in the Home directory (for example, ~ / workspace) and define the GOPATH environment variable to point to that directory, which will be used by the Go tool to save and edit binaries.
Mkdir ~ / workspaceecho 'export GOPATH= "$HOME/workspace" > > ~ / .bashrcsource ~ / .bashrc
Depending on your needs, we can install Go tools using yum:
Yum search golang
Manually install the go language for Linux
Since you use different Linux sources, not necessarily the * * version or the required version of the Go language pack, so let's talk about how to manually install the specified version.
1. Download Go language files
64-bit Linux
Wget http://www.golangtc.com/static/go/go1.4.2.linux-amd64.tar.gz
32-bit Linux
Wget http://www.golangtc.com/static/go/go1.4.2.linux-386.tar.gz
Golang download
two。 Extract the binaries to the / usr/local directory
Sudo tar-xzf go1.4.2.linux-xxx.tar.gz-C / usr/local
3. Use vi to add the following to the environment variable configuration file / etc/profile:
Export PATH=$PATH:/usr/local/go/bin
4. Check the Go language version
Go version
5. Define GOPATH environment variables to the workspace directory
Export GOPATH= "$HOME/workspace" Thank you for your reading, the above is the content of "how to install GE language in Linux". After the study of this article, I believe you have a deeper understanding of how to install GE language in Linux, and the specific use needs to be verified in practice. here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.