jrmycanady/slurp-rtl_433

How to build a binary for linux

Opened this issue · 4 comments

Please forgive my ignorance. I am unable to figure out how to build a binary for Linux. The build.sh file creates an rpm file but no executable. The only binary I found was for Windows. (slurp-rtl_433.exe)

Same here, I was able to pass a value to the script however this then asks for fpm. Very new to all things go and I am finding it very painful to deal with.

@bob109, @kd4pba,

My apologies. Apparently I was not receiving notifications for this repo. If either are you still have issues or are interested in this let me know.

Not a problem. I have been interested in dumping to InfluxDB and this looks like one of the easier methods. I stumbled trying to build a binary for Linux.

@bob109,

Gotcha. The RPM that was build could be installed as is if your distro can support rpms. The build script should also build a dep file for debian based distros.

As for building the executable itself, do you know how to build in golang? You can checkout the build.sh file. Specifically this line will build from source for linux on amd64. the -o specifies the location the binary will be created and the name. So feel free to change that as needed.

env GOOS=linux GOARCH=amd64 go build -o ./install/usr/bin/slurp-rtl_433