How to run or build it on a Raspberry Pi?
marco79cgn opened this issue · 1 comments
marco79cgn commented
Hi,
while the provided release binaries work perfectly fine on macOS (Darwin), I can't get it to work on a Raspberry Pi (Raspberry OS, Debian GNU/Linux 11 bullseye). The linux binary is not compatible.
I tried to install it manually by first installing golang with sudo apt install golang
and afterwards I tried to run
go install github.com/mattn/bsky@latest
package github.com/mattn/bsky@latest: cannot use path@version syntax in GOPATH mode
Any help appreciated.
marco79cgn commented
Got it to work, at least on a Raspberry Pi 3 (not 4 though).
Needed steps:
- Uninstall golang from apt-get (because it's outdated)
sudo apt-get remove --purge golang && sudo apt-get autoremove
- Install latest golang version manually
curl -o go.tar.gz "https://dl.google.com/go/$(curl -sS https://go.dev/VERSION?m=text | head -n1).linux-armv6l.tar.gz"
sudo tar xf go.tar.gz -C /usr/local
echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee -a /etc/profile
source /etc/profile
- install gcc for arm architecture
sudo apt-get install gcc-arm-linux-gnueabihf
- checkout project and build it with make
git clone https://github.com/mattn/bsky.git
cd bsky
CC=arm-linux-gnueabihf-gcc make