moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
10.38k stars 546 forks source link

Failed install go1.22 #464

Open winey-dev opened 9 months ago

winey-dev commented 9 months ago

i want install go 1.22 but this run command

➜  ~ gvm install go1.4 -B
➜  ~ gvm use go1.4
➜  ~ export GOROOT_BOOTSTRAP=$GOROOT
➜  ~ gvm install go1.17.13
➜  ~ gvm use go1.17.13
➜  ~ export GOROOT_BOOTSTRAP=$GOROOT
➜  ~ gvm install go1.22
Installing go1.22.0...
 * Compiling...
ERROR: Failed to compile. Check the logs at /home/smlee/.gvm/logs/go-go1.22.0-compile.log
ERROR: Failed to use installed version

i try this step

  1. remove logs file
    
    ➜  ~ rm rm .gvm/logs/go-go1.22*
    ➜  ~ gvm list 
    gvm gos (installed)

=> go1.17.13 go1.4


2. re-install command run

➜ ~ gvm install go1.22
Installing go1.22.0 as go1.22...

echilacos commented 9 months ago
gvm install go1.20
gvm use go1.20
gvm install go1.22

Maybe this will help.

LemonAniLabs commented 8 months ago
gvm install go1.20
gvm use go1.20
export GOROOT_BOOTSTRAP=$GOROOT
gvm install go1.22