sqshq / sampler

Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.
https://sampler.dev
GNU General Public License v3.0
12.88k stars 573 forks source link

Running on Linux ARM? #53

Open adamwolf opened 5 years ago

adamwolf commented 5 years ago

Hi folks! This looks great. I want to try it out on an ARM box of mine, but the executable doesn't work, of course. I'll grab the source and see if I can make it go, but any thoughts on adding an "advanced linux installation" section or something?

sqshq commented 5 years ago

Hi @adamwolf, The plan is to support ARM cross-compilation (I don't have ARM machine) and release Linux ARM artifact along with others. Right now there is an issue with Oto player which prevents me to do that.

I'm thinking about alternatives, but there is a big chance that getting rid of trigger sound tone is the only way to go. Anyway, will be resolved in upcoming releases.

adamwolf commented 5 years ago

I was able to install golang and build it that way.

klundry commented 4 years ago

I was able to install golang and build it that way.

Do you have any tips on how you got it to build? I get the oto player errors and it fails. Is there something I can modify to remove the oto player dependency so it will build?

pablolibo commented 4 years ago

@adamwolf Could you share the steps for build? :)

adamwolf commented 4 years ago

Unfortunately, my notes for that are with a previous contract, and I do not recall. Sorry!

oersted81 commented 3 years ago

on RPI 3B+ Rasbian Buster as root:

apt install golang libasound2-dev git git clone https://github.com/sqshq/sampler.git cd sampler/ env GOOS=linux GOARCH=arm GOARM=7 go build mv sampler /usr/local/bin/ chmod +x /usr/local/bin/sampler

klundry commented 3 years ago

Thanks! Also works for me on aarch64 with the following line

env GOOS=linux GOARCH=arm64 go build

peanball commented 2 years ago

also works by forcing the platform on Docker to an arm architecture, e.g.

docker run -it --rm  --platform linux/arm golang:1.17

and then in that container running:

apt update
apt install -y libasound2-dev
git clone https://github.com/sqshq/sampler.git
go build