-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Can't install Huginn on ARM device - libv8 tries to build with x64 arch #1586
Comments
Sorry, I'm not sure how to install on ARM. This sounds like a v8 issue. |
Is therubyracer gem necessary or can I get by just with nodejs on the system?
|
It's needed for the JavaScriptAgent. If you don't need that, you can |
@wasafiri Can you try to install libv8 via the package manager and build the gem with |
...
|
For what it's worth, I don't get that permissions error when running
|
Ah, sorry the huginn user does not have the permissions to install a gem globally. Does this work?
|
Different error-- progress!
not sure why it can't find the system v8 for therubyracer when it can find it for libv8... the contents of mkmf.log are:
|
I think this is an issue with
What does |
The output is
|
Odd that arch should be supported, you might need to open an issue on therubyracer and/or libv8, I could not find any hints on how to build it on 64bit arm. |
@wasafiri I had a similar issue on OSX today and it turned out the
On debian the path will be different, but maybe it helps. |
Has any progress been made on this? |
I had a libv8 issue on OS X and this PR fixes it: #1671 |
Looking at https://rubygems.org/gems/libv8/versions, 3.16.14.7 has a precompiled binary gem for the arm-linux architecture, so try locking at the version if manual build fails. |
@knu: any suggestions how i could lock to a libv8 version? I already tried several ways without success. Even though i can install several libv8 gems for my platform, therubyracer always wants to do a manual build and then fails with a wrong platform. |
@souljedi You could go ahead and manually edit |
Any news? as #1671 has been merged. |
This was in the code so I guess they haven't implemented support for aarch64. Gonna adding it manually and see if it compiles. |
Hey sunbinyuan, did it work? |
Nope, I notice that the build was too old and a the build procedures for arm64 wasn't implemented yet. You can try the newer build of the gem if you manage to install v8 manually. |
Hi @wasafiri, are you still interested in running Huginn on your Pine64? Could you try to run |
I will give that a shot this week!
…Sent from my iPhone
On Apr 10, 2017, at 10:45 AM, Dominik Sander ***@***.***> wrote:
Hi @wasafiri, are you still interested in running Huginn on your Pine64? Could you try to run gem install mini_racer without any additional flag?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
result:
|
Thanks, that a bummer I hoped |
Is there update on this? |
@LexiconCode None that I know of. We can switch to |
Let me know you switch to mini_racer and I will test.
https://www.bountysource.com/issues/43955706-replace-therubyracer-with-mini_racer |
@dsander @cantino @knu |
This is a relevant pull request to replace rubyracer with mini_racer |
Some people has success on raspberries in the past, but I don't know about the 3. Recent libv8 versions seem not to build on ARM/ARM64 so even |
I made it work on Raspberry Pi 3 by applying this PR. I also had to fix the versions of some dependencies because they have not been updated for the ARM architecture. By hindsight, it was not worth the effort. There were regular crashes, probably due to heavy usage of swap memory, which then wore out the SD cards. This is only a guess, but I never had issues again after migrating to a server with more memory (not ARM though). I don't want to discourage anyone – the Raspberry Pi is a great platform – but you may waste a lot of time tinkering and then realize that Huginn needs more power as your number of agents increases. |
I made it work on Raspberry Pi 3 by applying this PR. I also had to fix the versions of some dependencies because they have not been updated for the ARM architecture. By hindsight, it was not worth the effort. There were regular crashes, probably due to heavy usage of swap memory, which then wore out the SD cards. This is only a guess, but I never had issues again after migrating to a server with more memory (not ARM though). I don't want to discourage anyone – the Raspberry Pi is a great platform – but you may waste a lot of time tinkering and then realize that Huginn needs more power as your number of agents increases. @sfischer13 how many agents did you keep active? If possible, could you also tell us which ones (not the finality, just the name)? |
I think it was more than 50 agents, but most of them were lightweight (hourly |
I think it was more than 50 agents, but most of them were lightweight (hourly `WebsiteAgent`, `DigestAgent`, `EmailAgent`, ...). Problems started when I tried `CsvAgent` and `JavaScriptAgent`. In my setup, these agents created too many events (happens fast if `CsvAgent` creates one event per line) and then the crashes began. @sfischer13 In the next 2 days I will try to install Huginn with the changes you suggested on a Raspberry Pi model 3 B (that is already executing a web server and other heavy daemons). A few hours of experimentation will clarify whether it is advantageous to run Huginn on a board in the long run. ;-) |
Understand their other much more powerful ARM based single board computers. For example Odroid series. So don't let the raspberry pi be the final determining factor :). |
@LorenzoAncora, thanks for the information about Linux process management. Your explanation makes more sense than mine and I guess my corrupted SD was just a coincidence. |
Any update on this? There are a few powerful ARM based SBCs these days that can easily run Huginn. In my opinion this issue limits and slows down the adoption of huginn. |
It would be nice to have a docker image compatible with arm, if you agree please provide some feedback: #2648 |
@ch40s I agree, currently1 there are only AMD64 docker images. 1: the contents of that page may change at any time. You'll find ARM images there if and when authors add them. |
I just created a Docker image of Huginn single process compatible with ARMv7/armhf, ARMv8/aarch64 and intel x86. This image is automatically updated for every new commit on https://github.com/huginn/huginn. I have no plans to support the multiple processes docker image of Huginn because I don't use it myself, and it is more difficult to build. |
Do we have any news about the official support for that? |
Installing on Debian Jessie on a Pine64 device.
When running the command:
sudo -u huginn -H bundle install --deployment --without development test
I get error with the libv8 gem -- all other gems install fine. Seems it tries to compile for x64 and not arm64.
The text was updated successfully, but these errors were encountered: