Home > Backend Development > Golang > Install GO in UBUNTU machines

Install GO in UBUNTU machines

WBOY
Release: 2024-07-18 13:14:35
Original
1148 people have browsed it

Download Source

Download source from this link Go Binaries

Unpack Packages

After downloading the binary file may be in your ~/Downloads folder from terminal
use this command

cd Downloads
Copy after login

Then list the items in the directory by this command

ls -l | grep go
Copy after login

Install GO in UBUNTU machines

Extract the binary files from the go1.22.2.linux-amd64.tar.gz file in the download folder (you may have download the another version) use this command

sudo tar -C /usr/local -xzf go1.22.2.linux-amd64.tar.gz
Copy after login

This command will extract the file into /usr/local folder

Add to PATH variable

Where the go binaries are you need to find it and then the path should be added to you path variable otherwise you will encounter some problems like go command not found by this command will be able to locate the go binary where it is

whereis go
Copy after login

Install GO in UBUNTU machines
Now copy the path and use below command

export PATH=$PATH:{your_copied_path_here}/bin
Copy after login

Verify Installation

Now use below command to verify your Installation

go version
Copy after login

Install GO in UBUNTU machines

The above is the detailed content of Install GO in UBUNTU machines. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template