Discrepancy in Go Version Display
When executing go version, you encounter a discrepancy where it prints the xgcc version instead of the installed Go version, which is 1.4.2. This issue arises despite installing Go from the latest source tar version.
Cause
The cause of this issue is the presence of multiple installed versions of Go. It appears that you have both the version installed from the Ubuntu package manager (xgcc) and the version you installed from the source tar (1.4.2).
Resolution
To resolve this issue, you need to remove the older version of Go (xgcc). Follow these steps:
sudo apt-get remove gccgo
This command will remove the gccgo package, which includes the xgcc version of Go.
Other Considerations
If you still encounter issues, you can try the following:
The above is the detailed content of Why Does `go version` Show xgcc Instead of My Installed Go 1.4.2?. For more information, please follow other related articles on the PHP Chinese website!