drudge
January 21, 2022, 10:38pm
21
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
agb007
January 22, 2022, 12:19pm
22
drudge:
uname -m
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 …
drudge
January 22, 2022, 2:10pm
23
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:
3 Likes
agb007
January 23, 2022, 4:57pm
25
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
agb007
January 23, 2022, 5:30pm
26
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
agb007
December 28, 2022, 2:07pm
27
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...
agb007
December 28, 2022, 5:48pm
29
sudo go build
Gives the result
sudo: go: command not found
go build
gives the error
is go installed and in your path?
agb007
December 28, 2022, 5:54pm
31
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?
agb007
December 28, 2022, 6:01pm
33
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
agb007
December 28, 2022, 6:12pm
34
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?
agb007
December 28, 2022, 6:16pm
36
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
?
agb007
December 28, 2022, 6:19pm
38
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
agb007
December 28, 2022, 6:27pm
40
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.