ctubio / Krypto-trading-bot

Self-hosted crypto trading bot (automated high frequency market making) written in C++
https://127.0.0.1:3000
Other
3.4k stars 827 forks source link

How to compile its own version of K #110

Closed Camille92 closed 7 years ago

Camille92 commented 7 years ago

Hello Carles,

I'm still struggling running my version of K with a few things modified on my computer :S.

I've been looking at make help and basically:

make -> results in an error:

g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

NODEv=v7.1.0 ABIv=51 make node `(uname -s)`
make[1]: Entering directory '/home/camille/K'
test -d build/node-v7.1.0 || curl https://nodejs.org/dist/v7.1.0/node-v7.1.0-headers.tar.gz | tar xz -C build
g++-4.9 -o dist/lib/K.linux.51.node -static-libstdc++ -static-libgcc -s -std=c++11 -DUSE_LIBUV -shared -fPIC -Ibuild/node-v7.1.0/include/node -Ibuild/libpng-1.6.31                       -Ibuild/json-v2.1.1 -Ibuild/uWebSockets-0.14.3/src              build/uWebSockets-0.14.3/src/Extensions.cpp build/uWebSockets-0.14.3/src/Group.cpp      build/uWebSockets-0.14.3/src/Networking.cpp build/uWebSockets-0.14.3/src/Hub.cpp        build/uWebSockets-0.14.3/src/Node.cpp build/uWebSockets-0.14.3/src/WebSocket.cpp  build/uWebSockets-0.14.3/src/HTTPSocket.cpp build/uWebSockets-0.14.3/src/Socket.cpp     build/uWebSockets-0.14.3/src/Epoll.cpp -Lbuild/libpng-1.6.31/lib -Ldist/lib -Wl,-rpath,'$ORIGIN' src/lib/K.cc -lsqlite3 -lz -lK -lpng16 -lcurl
make[1]: g++-4.9: Command not found
Makefile:96: recipe for target 'Linux' failed
make[1]: *** [Linux] Error 127
make[1]: Leaving directory '/home/camille/K'
Makefile:68: recipe for target 'K' failed
make: *** [K] Error 2

make install -> the "stock" version is installed make reinstall -> the "stock" version is installed + the changes I made are suppressed.

I ran make server, cliend, pub and bundle but nothing as well.

So well I don't really understand what I should do here haha!

Best, Camille

ctubio commented 7 years ago

use g++ 4.9

Camille92 commented 7 years ago

Hey it works!!

Thank you very much, maybe it can be interesting to add that in troubleshooting :)

ctubio commented 7 years ago

(thanks for confirm'¡) nah, is quite clear the msg:

make[1]: g++-4.9: Command not found

also troubleshooting is for user issues, not developer issues; maybe in test and build notes :P (thanks again'¡)