Pixlet install on linux/RaspberryPi

Hi @agb007,

Can you run uname -m in a terminal and report back the output? The build @mark linked to is for arm64, which only works on 64-bit operating systems. It is possible that you are running a distro (like the official Pi OS) that is 32-bit only.

1 Like

Hi,

You have a point …
The answer I got back was armv7l

I would love a nice guide how to set up a PI running everything that is needed for creating apps.
Will almost write one myself after I have configured it out …

Check out the FAQ on my Tidbyt Homebridge plugin’s Wiki. I’ve outlined steps to build a version of Pixlet for 32-bit Pi OS:

2 Likes

I got this error message at first step when I tried.

bash: -L: command not found

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Solved it by running from this page initially
https://www.e-tinkers.com/2019/06/better-way-to-install-golang-go-on-raspberry-pi/
and after that following your steps.

Worked perfect!
Thanks @drudge

Tried redoing this on a new Pi 3b but it seems to be difficult …
When using @deyavito guide I fail at
go build

go build tidbyt.dev/pixlet: copying /tmp/go-build1755462373/b001/exe/a.out: open pixlet: permission denied

Anyone has some suggestions?

Do it with admin rights? sudo...

sudo go build
Gives the result
sudo: go: command not found

go build
gives the error

is go installed and in your path?

Installed yes correct path, not really sure how to check

pi@raspberrypi:~/pixlet $ go get ./…
pi@raspberrypi:~/pixlet $ go build
go build tidbyt.dev/pixlet: copying /tmp/go-build3220311480/b001/exe/a.out: open pixlet: permission denied
pi@raspberrypi:~/pixlet $ cd …
pi@raspberrypi:~ $ which go
/usr/local/go/bin/go
pi@raspberrypi:~ $

What does go version give you?

pi@raspberrypi:~ $ go version
go version go1.19.4 linux/arm

I start to think if it can have something to do with the .profile?

PATH=$PATH:/usr/local/go/bin
GOPATH=$HOME/go

We might have a solution redid it after deleting the pixlet folder
and…

pi@raspberrypi:~/pixlet $ file pixlet
pixlet: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=ec9b58bfcbe37971020ae7e80a34ccef964b831c, for GNU/Linux 3.2.0, with debug_info, not stripped

go build is obviously a permissions issue, but now you’re erroring out on the file command?

edit. wait looking at the previous posts looks like you’re gtg?

Not easy this … last time it did not give an error I supposed it ran as it should since file pixlet gave a result I thought solved …

pi@raspberrypi:~/pixlet $ file pixlet
pixlet: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=ec9b58bfcbe37971020ae7e80a34ccef964b831c, for GNU/Linux 3.2.0, with debug_info, not stripped
pi@raspberrypi:~/pixlet $ cd …
pi@raspberrypi:~ $ pixlet serve ~/tidbyt-apps/temp.star
bash: pixlet: command not found
pi@raspberrypi:~ $

did you copy/move pixlet into your usr/local/bin?

no that step I have not seen

what would be the code for that?
cd pixlet
mv pixlet usr/local/bin or something similar?

you’ll probably have to do sudo cp pixlet /usr/local/bin provided you are in the pixlet folder. sudo just does it with admin rights.

That should basically put pixlet in your path. this last step is mentioned in the BUILD.md`, but not with a command.

1 Like

You are a god!

Now it at least seems to be possible to run.

pi@raspberrypi:~/pixlet $ sudo cp pixlet /usr/local/bin
pi@raspberrypi:~/pixlet $ pixlet serve ~/tidbyt-apps/temp.star
2022/12/28 19:22:54 listening at http://127.0.0.1:8080

Do you have a clue why the browser can’t connect?

127.0.0.1 refused to connect.

No idea, is it already in use somehow? could try a different port too. Or closing and reopening the terminal.