标题:compile viabtc_exchange_server on Ubuntu 16.04 出处:Felix021 时间:Mon, 26 Mar 2018 21:29:34 +0000 作者:felix021 地址:https://www.felix021.com/blog/read.php?2187 内容: If you find this article helpful, you may like to donate to my ETH address: 0x84D5084a0142a26081a2d06F3505cfc2CDaE9009 Detailed guide to compile viabtc_exchange_server on Ubuntu 16.04 ## DEPENDENCIES ## 引用 $ sudo apt install -y libev-dev libjansson-dev libmpdec-dev libmysqlclient-dev libcurl4-gnutls-dev libldap2-dev libgss-dev librtmp-dev libsasl2-dev # librdkafka: 0.11.3+; DO NOT INSTALL BY APT: version too old (0.8.x); # if you do, remove them by: sudo apt remove librdkafka1 librdkafka-dev $ wget https://github.com/edenhill/librdkafka/archive/v0.11.3.tar.gz -O librdkafka-0.11.3.tar.gz $ tar zxf librdkafka-0.11.3.tar.gz $ cd librdkafka-0.11.3 $ ./configure $ make $ sudo make install ## COMPILATION ## 引用 $ git clone https://github.com/viabtc/viabtc_exchange_server.git $ cd viabtc_exchange_server $ make -C depends/hiredis $ make -C network $ vi utils/makefile #modify INCS # INCS = -I ../network -I ../depends $ make -C utils $ vi accesshttp/makefile #modify INCS & LIBS # INCS = -I ../network -I ../utils -I ../depends # LIBS = -L ../utils -lutils -L ../network -lnetwork -L ../depends/hiredis -Wl,-Bstatic -lev -ljansson -lmpdec -lrdkafka -lz -lssl -lcrypto -lhiredis -lcurl -Wl,-Bdynamic -lm -lpthread -ldl -lssl -lldap -llber -lgss -lgnutls -lidn -lnettle -lrtmp -lsasl2 -lmysqlclient $ make -C accesshttp $ vi accessws/makefile {modify INCS and LIBS like accesshttp/makefile} $ make -C accessws vi alertcenter/makefile {modify INCS and LIBS like accesshttp/makefile} $ make -C alertcenter $ vi marketprice/makefile {modify INCS and LIBS like accesshttp/makefile} $ make -C marketprice $ vi matchengine/makefile {modify INCS and LIBS like accesshttp/makefile} $ make -C matchengine $ vi readhistory/makefile {modify INCS and LIBS like accesshttp/makefile} $ make -C readhistory Generated by Bo-blog 2.1.0