wget https://storage.googleapis.com/golang/go1.6.linux-armv6l.tar.gz
解压:
sudo tar -zxvf go1.6.linux-armv6l.tar.gz
设定 PATH 以及 GOROOT:
export PATH="/home/osmc/go/bin:$PATH" export GOROOT="/home/osmc/go"
验证:
go version
时间: 2024-10-05 08:26:20
wget https://storage.googleapis.com/golang/go1.6.linux-armv6l.tar.gz
解压:
sudo tar -zxvf go1.6.linux-armv6l.tar.gz
设定 PATH 以及 GOROOT:
export PATH="/home/osmc/go/bin:$PATH" export GOROOT="/home/osmc/go"
验证:
go version