I have never used a raspberry pi before but I am trying it for education purposes. I am using a Raspberry Pi 4 Model B. I am trying to install Go following this:
video tutorial
I have an issue; after running the code I receive following error messages:
raspberry@raspberrypi:~$ go install $GOPATH/hello.go
# internal/goarch
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/unsafeheader
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/byteorder
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/coverage/rtcov
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/godebugs
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/cpu
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/goexperiment
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/goos
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/profilerecord
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/itoa
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# cmp
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/runtime/syscall
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/race
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# math/bits
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# unicode
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# unicode/utf8
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# sync/atomic
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/asan
compile: version "go1.21.0" does not match go tool version "go1.19.8"
# internal/msan
compile: version "go1.21.0" does not match go tool version "go1.19.8"
It seems to me that I have an incorrect go version installed (1.21.0 instead of 1.19.8). I think i installed version 1.23.2 though. I have no idea how to fix it or what went wrong, as i have no experience. Does anyone know how to fix this or know a better tutorial? All other ones I’ve tried haven’t worked either.