Set up golang with goenv on GNU / Linux

Install and configure goenv

Install with git clone.

$ git clone https://github.com/syndbg/goenv.git ~/.goenv

Set environment variables and so on. [Slightly different] depending on the login shell and system (https://github.com/syndbg/goenv/blob/master/INSTALL.md#basic-github-checkout). The following is for Debian and bash.

$ vi ~/.bashrc
# goenv

export GOENV_ROOT="$HOME/.goenv"
export PATH="$GOENV_ROOT/bin:$PATH"
eval "$(goenv init -)"
export PATH="$GOROOT/bin:$PATH"
export PATH="$PATH:$GOPATH/bin"

After editing, log out once.

Setting up golang with goenv

Set up with the following command.

$ goenv install 1.13.0
$ goenv global 1.13.0
$ go version
go version go1.13 linux/amd64

Recommended Posts

Set up golang with goenv on GNU / Linux
Set up Docker on Oracle Linux (7.x) with Vagrant
Set up an Objective-C 2.0 development environment on Linux
[Part 1] Let's set up a Minecraft server on Linux
Set up Polyglot on Windows
I want to set up a GUI development environment with Python or Golang on Mac
Set up social login with Django
Set up Python environment on CentOS
Run cron on Amazon Linux (set on Linux)
Set up a Samba server with Docker
Experience Linux speeding up with Page cache
X86 assembler on Linux (linkage with C)
[C] [python] Read with AquesTalk on Linux
Connect to GNU / Linux with Remote Desktop
Set up reverse proxy to https server with CentOS Linux 8 + Apache mod_ssl
Run bootgen on Debian GNU / Linux, Ubuntu
Install Mecab on Linux (CentOS) with brew
On Ubuntu Linux, set Tab to q
Run Linux on ARM architecture with QEMU
Useful for changing permissions on Linux! How to count up to 31 with one hand.
Set up a simple HTTPS server with asyncio
Set up a local server with Go-File upload-
Start a process with a scheduling policy on Linux
Set up a local server with Go-File download-
Organize files on Windows with Linux commands-using WSL-
Set up python Tornado environment on raspbian jessie
Set up a Python development environment on Marvericks
Back up from QNAP to Linux with rsync
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Set the startup script on Linux (RasPi, Edison)
Golang on jupyter
Run Kali Linux on Windows with GUI (without VirtualBox)
Set up a simple local server on your Mac
Set up a file server on Ubuntu 20.04 using Samba
Yum command to access MySQL with Python 3 on Linux
PySpark: Set up PySpark on your Alibaba Cloud CentOS instance
Set up a free server on AWS in 30 minutes
A note on speeding up Python code with Numba
Launch Django on a Docker container with docker-compose up
Set up a Python development environment with Sublime Text 2
[Vagrant] Set up a simple API server with python
Set up python and machine learning libraries on Ubuntu
How to set up WSL2 on Windows 10 and create a study environment for Linux commands