ctubio / tribeca

Self-hosted crypto trading bot (automated high frequency market making) in node.js, angular, typescript and c++
https://127.0.0.1:3000
Other
95 stars 26 forks source link

Libquickfix.so.16 not finding error #135

Closed b-seite closed 7 years ago

b-seite commented 7 years ago

Hello, probably it´s me who is simply too stupid. But since 2 days i get the following Error when rebuilding and starting tribeca from node. I am using the latest versions of the repository and npm/node.

Error: libquickfix.so.16: cannot open shared object file: No such file or directory at Object.Module._extensions..node (module.js:598:18) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object. (/home/ec2-user/tribeca/node_modules/node-quickfix-wrap/index.js:1:78) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object. (/home/ec2-user/tribeca/app/server/gateways/coinbase.js:23:18) at Module._compile (module.js:569:30)

has anyone an idea for me? Thanks Boris

ctubio commented 7 years ago

from tribeca folder try rm -rf /usr/local/lib/libquickfix.so && npm run compile-quickfix not sure why libquickfix.so.16 doesn't exists so lets try to rebuild it. once is done if still fails, can you see what is the output of ls -la /usr/local/lib/libquickfix.so*? thanks'¡

b-seite commented 7 years ago

I recompiled libquickfix. The problem is still there, here is the output of ls:

[ec2-user@ip-xxx-xxx-xxx tribeca]$ ls -la /usr/local/lib/libquickfix.so* lrwxrwxrwx 1 root root 21 Jun 13 22:09 /usr/local/lib/libquickfix.so -> libquickfix.so.16.0.1 lrwxrwxrwx 1 root root 21 Jun 13 22:09 /usr/local/lib/libquickfix.so.16 -> libquickfix.so.16.0.1 -rwxr-xr-x 1 root root 21192364 Jun 13 22:09 /usr/local/lib/libquickfix.so.16.0.1

ctubio commented 7 years ago

well, seems libquickfix.so is OK so maybe the problem is in the node-quickfix-wrap, try if you agree from tribeca folder rm -rf node_modules app build package-lock.json && git checkout package-lock.json && npm install thanks'¡

ctubio commented 7 years ago

if still doesn't work, can you please manually check if you have installed all dependencies from http://www.quickfixengine.org/quickfix/doc/html/dependencies.html? is supposed that npm install will install all of them, but maybe i missed something?

b-seite commented 7 years ago

I checked it but everything is installed correctly. The error still persist even on a brand new instance.

ctubio commented 7 years ago

a new instance of what? can you please show the output of cat /etc/issue && uname -a? im not able to reproduce this in any of my Debian/CentOS/macOS thanks'¡

ctubio commented 7 years ago

allow me to close this meanwhile im not able to reproduce it, if you still have issues consider to paste the log of the whole fresh npm install, it may have an interesting error in there (after the app is executed it just misses the lib but doesnt say why it was not able to install it, so app execution log is not interesting)

b-seite commented 7 years ago

Thanks for the Help. It seems that it was a special thing with Amazon Linux AMI 2017.03.0 which i used. At the moment i have no more problems using ubuntu 16.04