First, use the following command to check the installed Go version. Step 3 – Verify Go Installationįinally, you have successfully installed and configured go language on your system. To make it permanent add above commands in ~/.profile file. export PATH=$GOPATH/bin:$GOROOT/bin:$PATHĪll the above environment will be set for your current session only. Now set the PATH variable to access go binary system wide. For example my project directory is ~/Projects/Proj1. GOPATH is the location of your work directory. GOROOT is the location where Go package is installed on your system. Commonly you need to set 3 environment variables as GOROOT, GOPATH and PATH. tar -xvf go1.19. sudo mv go /usr/local Step 2 – Setup Go EnvironmentĪfter completing step 1, Now configure the Go language environment variables for your project. You can also put this under the home directory (for shared hosting) or other location. For this tutorial, I am installing it under /usr/local directory. Now extract the downloaded archive and install it to the desired location on the system. To find and download latest version available or 32 bit version go to official download page. Now download the Go language binary archive file using the following link. sudo apt-get update sudo apt-get -y upgrade Now login to your Debian system using shell or ssh and upgrade to apply the latest security updates there. You need sudo access or root access to your system for Go installation. This tutorial will help you to install Go 1.19 on your Debian 11, Debian 10, Debian 9, and Debian 8 Linux systems. This is Debian 11, codenamed bullseye, netinst, for 64-bit PC (amd64) debian-11.6.0-amd64-netinst.iso.
0 Comments
Leave a Reply. |