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

Build ARM pacakge (.deb / .rpm) #708

Closed
PierreF opened this issue Feb 17, 2016 · 9 comments · Fixed by #779
Closed

Build ARM pacakge (.deb / .rpm) #708

PierreF opened this issue Feb 17, 2016 · 9 comments · Fixed by #779
Assignees

Comments

@PierreF
Copy link
Contributor

PierreF commented Feb 17, 2016

Telegraf is already built for ARM, but only available as "Standalone".

It would be great to also built them as .deb and have them in your repository (https://repos.influxdata.com/). This would simplify installing (and keep up-to-date) telegraf on RasberryPi (or other ARMish board).

Thanks

@TotallyInformation
Copy link

The ARM deb that is listed on the github README does not work on the Raspberry Pi 2 which is an armhf architecture. Would it be possible to adjust your auto-builds to include armhf versions and add them to the repos?

It would also be great if the same could be done for InfluxDB.

Building Go on the Pi is hard enough but building all 3 is a nightmare for those of us who want to get on with using the tools rather than learning how to compile new languages.

InfluxDB is a great tool for IoT as is the Pi, it would seem sensible to have both working with each other.

@s1m0
Copy link

s1m0 commented Feb 28, 2016

there is a work-around (credit to @rossmcdonald)
As root run:-
dpkg --add-architecture arm
dpkg -i package

The nightly influxdb builds install as armhf, without requiring this work-around.

@dmptrluke
Copy link

Agreed. Not sure why the current arm builds are "arm" and not "armhf" or "armel". Debian really does not want to install them because of that fact. Repo would be nice too.

@PierreF
Copy link
Contributor Author

PierreF commented Mar 2, 2016

Building with

./scripts/build.py --package --version="0.10.4.1-22-gb2a4d4a" --platform=linux --arch=arm --pkgarch=armhf

creates package that works on RaspberryPi 2 (with Ubuntu)

I don't known what pkgarch expect RPM based distro.

If armhf works on them, Maybe it should be the default pkgarch for ARM build ?

sparrc pushed a commit that referenced this issue Mar 3, 2016
@TotallyInformation
Copy link

Thanks for listing the command @PierreF but my point was that this is VERY unfriendly to users who are often not that familiar with Linux development. It is even more unfriendly as compilation on a Pi will take AGES.

If there is a build process that populates the repo's, is it that hard to fix it to also include a working set of ARM binaries?

@s1m0 many thanks for the workaround, I will give that a go.

I'm new to Influx and I would have to comment that the lack of friendliness for non-dev installers is a real put-off and will continue to hamper your otherwise excellent set of projects. I sincerely hope that Influx won't languish as another "also-ran" like so many other open source projects for lack of some thought for people who don't want to or haven't the time to learn the arcane arts of C programming.

If it were not for Matthias's blog post with precompiled versions, I would have certainly passed over InfluxDB alltogether. As it is Telegraf didn't work properly so I'm not currently using it. I will try again with the information here but life is far too precious to be wasting it on working out how to compile something I'm afraid.

All the best for the future. Julian.

@rossmcdonald
Copy link
Contributor

@TotallyInformation the reason why this issue was closed is because we just added support for armhf, armel, and arm64 builds to the nightly releases with #779. If you need an armhf binary as badly as it sounds, you can find the links to the nightlies below:

I don't have the means to test the new builds myself since I don't have a Pi, but let me know if anyone runs into any other issues and I'd be happy to help.

@TotallyInformation
Copy link

Thanks Ross, can we assume this will eventually make it across to the stable builds too?

I'll give it a go when I get a chance.

@sparrc
Copy link
Contributor

sparrc commented Mar 9, 2016

@TotallyInformation Yes the armhf packages will be available in stable builds with the next release.

Please keep in mind that we're trying our best to support all users and platforms. We usually do not know about issues with a smaller platform until someone opens an issue. As you can see, this issue was only opened 3 weeks ago. Ross has been doing a great job with our build process and repositories, and I think it's understandable to overlook the difference between "arm" and "armhf" :)

We don't expect users to build our code from source....so if there's somewhere else you find this, you should let us know as soon as possible.

@TotallyInformation
Copy link

@sparrc - sorry if I came across a little aggressively - a professional danger. I can get a little carried away with trying to encourage people about things I'm passionate about. :-} I recognise that there are far too many options to be able to pick up on everything and I really do appreciate your efforts to bring something new and good. I'm happy to spread the word - as long as I can get it to work :-/

Thanks for clarifying. I'm looking forward to trying Telegraf again. I also gave some feedback on InfluxDB as I got an email having registered. It was along much the same lines so I hope that the DB will follow a similar route.

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

Successfully merging a pull request may close this issue.

6 participants