Home >Backend Development >Golang >Why is my `go version` command showing xgcc instead of my installed Go version?
"Go is printing xgcc version but not go installed version"
This error occurs when multiple versions of Go are installed on your system. In this case, the "go version" command is executed using the xgcc version installed by the Ubuntu package manager, rather than the latest version installed from the tar archive.
To fix this issue, you can confirm that you have two versions of Go installed. Remove the xgcc version using the following command:
sudo apt-get remove gccgo
After removing the xgcc version, verify that "go version" now correctly prints the installed version (1.4.2).
The above is the detailed content of Why is my `go version` command showing xgcc instead of my installed Go version?. For more information, please follow other related articles on the PHP Chinese website!