Krypto-trading-bot: running on ARM?

Created on 19 Aug 2017  路  15Comments  路  Source: ctubio/Krypto-trading-bot

Is it possible to run K on ARM? I'm using a raspberry pi, and I can't get it to run. I always get:

K.linux.57
/home/pi/K/app/server/main.js:14
throw new Error(e);
^

Error: Error: /home/pi/K/app/server/lib/K.linux.57.node: wrong ELF class: ELFCLASS64
at bindings (/home/pi/K/app/server/main.js:14:19)
at Object. (/home/pi/K/app/server/main.js:16:3)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
at Object. (/home/pi/K/K.js:2:1)

improvement acknowledged

All 15 comments

not yet, will be once node is removed

feel free to send a link to your RASPBERRY PI model, cos i may be able to test with the very same model mostly possible

I also want to run K on the raspberry pi 3, I'll be willing to test a few things for both of you :)

i managed to get a pi 3, will try it soOn''

I have an old and unused pi 2b.
If its wanted to get K Running on older Pi's i can help you pur with that by either testing on my own, giving you Remote Access or sending it to you

Greetings boris

thanks @b-seite, finally i managed yesterday to get a raspberry; will test soOn''

many thanks again'''''

I installed pi64 to remove this error, it's working so far as I get another, seemingly unrelated error ;)

K.linux.57
01:45:09.174 main Unhandled exception! Error: Error: /home/pi/Desktop/K/app/server/lib/K.linux.57.node: cannot open shared object file: No such file or directory
    at bindings (/home/pi/Desktop/K/app/server/main.js:14:19)
    at Object.<anonymous> (/home/pi/Desktop/K/app/server/main.js:16:3)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/pi/Desktop/K/K.js:2:1)

I suspect that one Lib is dynamicly linked and I would need to re-install it using :armhf .

Do you have any idea what lib it can be, @ctubio ?

Thanks!

EDIT: nvm, I installed nodejs:armhf . It fixed the shared object error but I still get the wrong ELFCLASS error...

now it runs, but i think it does runs long enough xD

Hi @ctubio .

I'm trying to install from fresh using the latest version on my pi3 running pi64 and make start gives me this error when it's still in the building phase :
make[6]: Leaving directory '/home/pi/Desktop/K4/build/openssl-1.1.0f' engines/afalg/e_afalg.c: In function 'eventfd': engines/afalg/e_afalg.c:110:20: error: '__NR_eventfd' undeclared (first use in this function); did you mean '__NR_eventfd2'? return syscall(__NR_eventfd, n); ^~~~~~~~~~~~ __NR_eventfd2 engines/afalg/e_afalg.c:110:20: note: each undeclared identifier is reported only once for each function it appears in engines/afalg/e_afalg.c:111:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Makefile:5965: recipe for target 'engines/afalg/e_afalg.o' failed make[5]: *** [engines/afalg/e_afalg.o] Error 1
I don't know if it's related to this commit or not...

Hi lejacobroy''
maybe there are two versions of openssl sources in the system? try sudo apt-get remove libssl-dev cos now openssl source is locally at build/ folder (no need to get from the package manager, moreover may cause problems if versions are diff)

for me runs, but crashes at reading configs like it does on macOS; hope we can fix both in one shoOt

also i used official image from https://www.raspberrypi.org/downloads/raspbian/

fuck yea https://github.com/ctubio/Krypto-trading-bot/commit/78e6ed0062b625a8489d6568d3cfbf17541da6d4 fixes the missing configs; for me runs 99% now ina official fresh raspbian

have minor bugs but will fix soOn (quoting parameters are not saved)

Nice! it compiles but still can't start, as the symlink int K.sh points to ../../dist/lib/K-aarch64 (keep in mind that i'm running pi64) but this file is not in the dist/lib/ folder (only armv71).

How can I make it create one?

Thanks!

im not sure that pi64 is a good idea, it says "pi64 is an experimental OS"; anyway i will try to cross-compile for aarch64 soOn' (usually executables are created by simply running make)

Yeah I know it's experimental hehe ;) If it dosen't work, I'll try to move back to raspbian next week.

On a side note, how where the files *.a in dist/lib/ created?

I want to try to make one for aarch64..

thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Camille92 picture Camille92  路  7Comments

Bzzz666 picture Bzzz666  路  8Comments

IgorPcelnikov picture IgorPcelnikov  路  4Comments

mattygug picture mattygug  路  6Comments

nonkreon picture nonkreon  路  5Comments