Closed livvy94 closed 1 year ago
It obviously will not work as the binary builds were intended for x86_64, you must compile discordo natively for your pi (arm)'s architecture.
Oh, that makes sense.
I just tried to compile from source, and running go build
doesn't produce any binaries and says:
../../go/pkg/mod/github.com/mattn/go-runewidth@v0.0.14/runewidth.go:7:2: found packages uniseg (doc.go) and main (gen_breaktest.go) in /home/olivia/go/pkg/mod/github.com/rivo/uniseg@v0.4.3
(I apologize, I have never used golang before)
EDIT: I'm running go version go1.15.15 linux/arm64
go build -modcacherw
I just tried this and it gives the same error message about the packages.
EDIT: running sudo go build -modcacherw
makes it print all the packages it's able to successfully download again:
go: downloading github.com/zalando/go-keyring v0.2.2
go: downloading github.com/atotto/clipboard v0.1.4
go: downloading github.com/rivo/tview v0.0.0-20230104153304-892d1a2eb0da
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/gdamore/tcell/v2 v2.5.4
go: downloading github.com/godbus/dbus/v5 v5.1.0
go: downloading golang.org/x/text v0.6.0
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading golang.org/x/term v0.4.0
go: downloading golang.org/x/sys v0.4.0
go: downloading github.com/gorilla/websocket v1.5.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/gorilla/schema v1.2.0
go: downloading golang.org/x/time v0.3.0
go: downloading github.com/gdamore/encoding v1.0.0
go: downloading github.com/rivo/uniseg v0.4.3
/root/go/pkg/mod/github.com/mattn/go-runewidth@v0.0.14/runewidth.go:7:2: found packages uniseg (doc.go) and main (gen_breaktest.go) in /root/go/pkg/mod/github.com/rivo/uniseg@v0.4.3```
Well I don't know much about setup of Go on other architectures, consult arbitrary documentation about it perhapd
Unfortunately it's still giving the same message...
../../go/pkg/mod/github.com/mattn/go-runewidth@v0.0.14/runewidth.go:7:2: found packages uniseg (doc.go) and main (gen_breaktest.go) in /home/olivia/go/pkg/mod/github.com/rivo/uniseg@v0.4.3
Same with go build -modcacherw
ayn2op try not to close issue without original creator verifying its fixed challenge
Oh, that makes sense.
I just tried to compile from source, and running
go build
doesn't produce any binaries and says:../../go/pkg/mod/github.com/mattn/go-runewidth@v0.0.14/runewidth.go:7:2: found packages uniseg (doc.go) and main (gen_breaktest.go) in /home/olivia/go/pkg/mod/github.com/rivo/uniseg@v0.4.3
(I apologize, I have never used golang before)
EDIT: I'm running
go version go1.15.15 linux/arm64
The minimum Go version required to compile Discordo is 1.19
. Please upgrade the Go toolchain and try again.
After a lot of wrestling with golang's downloads (I'm on a raspberry pi so apt-get has an old version), I was able to install 1.20 and build the code! Thank you for being patient with me.
Hello! I downloaded the precompiled Linux build with
wget
and unzipped it, but uponchmod a+x
'ing it and running it, it says:-bash: ./discordo: cannot execute binary file: Exec format error
Was it compiled with a different Linux distro or in mind or am I doing something wrong? Either way I'll try to build from source instead and see how that goes. Thank you so much for making this, I use a tiny B&W portable CRT TV as a display for my Raspberry Pi and using discord on it would be cool as hell.