How do I compile Go from sources if I received the building_Go_requires_Go_1_17_13_or_later error?

156 Views Asked by At

I tried to compile Go using an existing version of Go, but I was given this error message?.

What does this mean if I want to compile Go from source? The last version of go that could be compiled with C was the 1.4 release, but now I need version 1.17.13?

How should I resolve this?

1

There are 1 best solutions below

0
Hồ Văn Hòa On

you have to install go1.20 or later, and use it:

gvm install go1.20
gvm use go1.20