zoukankan      html  css  js  c++  java
  • usdt源码编译安装

    1、依赖关系
    Boost >= 1.53


    2、安装依赖包
    You will need appropriate libraries to run Omni Core on Unix, please see doc/build-unix.md for the full listing.
    You will need to install git & pkg-config & autoconf:
    sudo apt-get install git
    sudo apt-get install pkg-config
    sudo apt-get install autoconf
    sudo apt-get install libtool
    sudo apt-get install libdb-dev
    sudo apt-get install libdb++-dev
    sudo apt-get install libboost-dev
    sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
    sudo apt-get install libssl-dev
    sudo apt-get install libevent-dev


    3、源码下载
    git clone https://github.com/OmniLayer/omnicore.git


    4、编译
    cd omnicore/
    Then, run:
    ./autogen.sh
    ./configure --with-incompatible-bdb --with-boost-libdir=/usr/lib/x86_64-linux-gnu
    make


    5、启动
    在omnicore/src/会有omnicored, omnicore-cli等可执行文件。其来执行方式与bitcoin一样,需要一个名为bitcoin.conf的配置文件。
    启动命令:
    ./src/omnicored -conf=%PATH TO bitcon.conf% -datadir=%PATH TO DATA DIR% &
    启动之后,可以在%datadir%/omnicore.log下面查看日志
    omni的JSON-RPC API与bitcoin的完全相同,使用的时候只是相当于将bitcoin的命令集进行了扩展
    https://github.com/OmniLayer/omnicore/blob/master/src/omnicore/doc/rpc-api.md

    ./src/omnicored -conf=../.omni/bitcoin.conf -datadir=/home/data01/omni -port=18301 &

    具体用法参考:https://blog.csdn.net/abcdad/article/details/80390898

    其它问题:
    Once complete:
    cd src/
    And start Omni Core using ./omnicored (or ./qt/omnicore-qt if built with UI). The inital parse step for a first time run will take up to 60 minutes or more, during this time your client will scan the blockchain for Omni Layer transactions. You can view the output of the parsing at any time by viewing the log located in your datadir, by default: ~/.bitcoin/omnicore.log.
    Omni Core requires the transaction index to be enabled. Add an entry to your bitcoin.conf file for txindex=1 to enable it or Omni Core will refuse to start.
    If a message is returned asking you to reindex, pass the -reindex flag as startup option. The reindexing process can take serveral hours.
    To issue RPC commands to Omni Core you may add the -server=1 CLI flag or add an entry to the bitcoin.conf file (located in ~/.bitcoin/ by default).
    In bitcoin.conf:
    server=1
    After this step completes, check that the installation went smoothly by issuing the following command ./omnicore-cli omni_getinfo which should return the omnicoreversion as well as some additional information related to the client.
    The documentation for the RPC interface and command-line is located in [src/omnicore/doc/rpc-api.md] (src/omnicore/doc/rpc-api.md).


    1、libdb_cxx headers missing
    apt-get install libdb-dev
    (libdb5.1-dev)
    apt-get install libdb++-dev
    (libdb++-dev libdb5.1++ libdb5.1++-dev)


    2、configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)
    ./configure --with-incompatible-bdb


    3、configure: error: No working boost sleep implementation found.
    apt-get install libboost-dev


    4、configure: error: Could not link against boost_system
    apt-get install libboost-system-dev
    apt-get install libboost-filesystem-dev libboost-thread-dev


    5、configure: error: Could not link against boost_filesystem !
    sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev


    6、configure: error: openssl  not found.
    sudo apt-get install libssl-dev


    7、configure: error: libevent not found.
    sudo apt-get install libevent-dev

  • 相关阅读:
    线程池:
    C#:实现托盘
    Linux内核 TCP/IP、Socket参数调优
    redis配置文件redis.conf参数说明
    redis安装与参数说明
    巧用linux服务器的/dev/shm/,如果合理使用,可以避开磁盘IO不给力,提高网站访问速度。
    mkdir:批量创建文件夹
    linux下的shell运算(加、减、乘、除)
    Linux查看文件编码格式及文件编码转换
    解决vi/vim中粘贴会在行首多很多缩进和空格的问题
  • 原文地址:https://www.cnblogs.com/405845829qq/p/9329090.html
Copyright © 2011-2022 走看看