Thursday, November 14, 2024
HomeGolangPutting in Go on Raspberry Pi 4 - Getting Assist

Putting in Go on Raspberry Pi 4 – Getting Assist


I’ve by no means used a raspberry pi earlier than however I’m making an attempt it for schooling functions. I’m utilizing a Raspberry Pi 4 Mannequin B. I’m making an attempt to put in Go following this:
video tutorial
I’ve a problem; after working the code I obtain following error messages:

raspberry@raspberrypi:~$ go set up $GOPATH/whats up.go
# inside/goarch
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/unsafeheader
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/byteorder
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/protection/rtcov
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/godebugs
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/cpu
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/goexperiment
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/goos
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/profilerecord
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/itoa
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# cmp
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/runtime/syscall
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/race
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# math/bits
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# unicode
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# unicode/utf8
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# sync/atomic
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/asan
compile: model "go1.21.0" doesn't match go software model "go1.19.8"
# inside/msan
compile: model "go1.21.0" doesn't match go software model "go1.19.8"

It appears to me that I’ve an incorrect go model put in (1.21.0 as an alternative of 1.19.8). I believe i put in model 1.23.2 although. I do not know the way to repair it or what went fallacious, as i’ve no expertise. Does anybody know the way to repair this or know a greater tutorial? All different ones I’ve tried haven’t labored both.

attempt “go model” ?
see https://go.dev/

I attempted that, it gave me:

warning: GOPATH set to GOROOT (/residence/raspberry/.native/share/go) has no impact
go model go1.22.1 linux/arm64

attempt “cat $GOPATH/whats up.go”

Then I recieve the message that it hasn’t been discovered.

You’re working this, why can’t you test it “$GOPATH/whats up.go” ?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments