Go/gvm
< Go
Jump to navigation
Jump to search
https://github.com/moovweb/gvm
# before use gvm install
sudo apt-get install build-essential
# install go1.4 first as build tool-chain for go1.17
gvm install go1.4 -B
gvm use go1.4
export GOROOT_BOOTSTRAP=$GOROOT
# install go 1.17 as build tool-chain for go1.20
gvm install go1.17.13
gvm use go1.17.13
export GOROOT_BOOTSTRAP=$GOROOT
# install go 1.20 as build tool-chain for go1.23
gvm install go1.20.14
gvm use go1.20.14
export GOROOT_BOOTSTRAP=$GOROOT
# install go
gvm install 1.23.9
Install gvm on Ubuntu 24
# Clean up
rm -rf ~/.gvm
# Install dependencies including mercurial (often missing)
sudo apt install -y curl git mercurial make binutils bison gcc build-essential bsdmainutils
# Install GVM
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source ~/.gvm/scripts/gvm
# Install binary bootstrap Go 1.4
gvm install go1.4 -B
gvm use go1.4 --default
# Now install newer version
gvm install go1.17.13
gvm use go1.17.13
# Then install latest
gvm install go1.23.3
gvm use go1.23.3 --default