Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build a binary for linux #16

Open
bob109 opened this issue Dec 4, 2019 · 4 comments
Open

How to build a binary for linux #16

bob109 opened this issue Dec 4, 2019 · 4 comments

Comments

@bob109
Copy link

bob109 commented Dec 4, 2019

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)

@kd4pba
Copy link

kd4pba commented Apr 5, 2020

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.

@jrmycanady
Copy link
Owner

@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.

@bob109
Copy link
Author

bob109 commented Jul 27, 2020

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.

@jrmycanady
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants