Hello, it works for me on raspberry pi and other platforms with rock64 if I had a little trouble installing it but in the end I managed it and it works. I will leave you some commands that helped me some, but the important thing is that it works without falling.
(in case the above does not work)
It is also important to have version 8 of node installed because with 9 the one that installed ocn command
does not work it did not work for me
can be eliminated
install node
for raspberry pi (first)
depends your cpu this command is only for the raspberry pi first version
to find the correct version you should know that cpu uses your plate and choose the appropriate version on this website https://nodejs.org/en/download/
pi@raspberrypi:~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2835
Revision : 000e
Serial : 0000000048cdee91
you bought what processor you have in my case it's arm6
//you go to the web https://nodejs.org/en/download/
//and you choose which node version is for you replace the file name in all the following queries
//in some cases I have needed and this later but it should no longer be necessary
sudo apt-get install -y build-essential
and then continue with the commands that you leave at the beginning
couple lover operated the gekko you will need after closing ssh
I am quite a beginner in this I only learned linux when I wanted to install gekko in raspberry and all kinds of problems have come out so I made some notes that happen to you I am not a professional but I hope to have helped people who come well
Code:
sudo apt install sqlite
sudo apt install sqlite3
cd gekko
npm install -g node-gyp --build-from-source
npm install sqlite
npm install sqlite3
//for some strategies used are needed and these
npm install talib --unsafe-perm --build-from-source
npm install tulind --unsafe-perm --build-from-source
npm install tulip --unsafe-perm --build-from-source
//if you tell yourself that you do not have permission to install that you can start these commands with sudo
(in case the above does not work)
It is also important to have version 8 of node installed because with 9 the one that installed ocn command
Code:
sudo apt install nodejs
can be eliminated
Code:
which node //where the node is installed
rm -r /home/pi/.nvm/versions/node //in this command you have to replace the position that has left the previous command (the position of node files)
install node
for raspberry pi (first)
depends your cpu this command is only for the raspberry pi first version
to find the correct version you should know that cpu uses your plate and choose the appropriate version on this website https://nodejs.org/en/download/
Code:
cat /proc/cpuinfo //with this command you discover that cpu has your board
this result came to me:
pi@raspberrypi:~ $ cat /proc/cpuinfo
pi@raspberrypi:~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2835
Revision : 000e
Serial : 0000000048cdee91
you bought what processor you have in my case it's arm6
//you go to the web https://nodejs.org/en/download/
//and you choose which node version is for you replace the file name in all the following queries
Code:
//raspeberry pi
cd ~
wget https://nodejs.org/dist/v8.9.4/node-v8.9.4-linux-armv6l.tar.gz
tar -xzf node-v8.9.4-linux-armv6l.tar.gz
node-v8.9.4-linux-armv6l/bin/node -v
cd node-v8.9.4-linux-armv6l/
sudo cp -R * /usr/local/
export PATH=$PATH:/usr/local/bin
node -v
npm -v
//rock64
cd ~
wget https://nodejs.org/dist/v8.9.4/node-v8.9.4-linux-arm64.tar.gz
tar -xf node-v8.9.4-linux-arm64.tar.gz
node-v8.9.4-linux-arm64/bin/node -v
cd node-v8.9.4-linux-arm64/
sudo cp -R * /usr/local/
export PATH=$PATH:/usr/local/bin
node -v
npm -v
//in some cases I have needed and this later but it should no longer be necessary
sudo apt-get install -y build-essential
and then continue with the commands that you leave at the beginning
couple lover operated the gekko you will need after closing ssh
Code:
npm install pm2 -g
pm2 start /home/pi/gekko/gekko.js -f --name gekko -x -- --ui
//then start the gekko (but you have to be sure that gekko's position is in the folder as in my case if it is not)
pm2 save //save config of pm2 for future reboot will start alone
I am quite a beginner in this I only learned linux when I wanted to install gekko in raspberry and all kinds of problems have come out so I made some notes that happen to you I am not a professional but I hope to have helped people who come well