USDT(omnicore)財布Linux横穴取り付け--簡素化プロセス付き


横穴取り付け
usdt gitアドレス:https://github.com/OmniLayer/omnicore
依存関係:
$yum install libtool
$yum install gcc
$yum install gcc-g++
$yum install make
$yum install autoconfig
$yum install automake

まずgitをインストールします.
yum install git
yum apt-get install pkg-config

usdtコアライブラリ:
git clone https://github.com/OmniLayer/omnicore.git
cd omnicore/

コンパイル:
./autogen.sh 	//configuration failed, please install autoconf first     autoconf,   autoconf
./configure
make

//名前tar-zxvf filenameの解凍
Autoconfとautomakeをインストールするには:
yum install -y  autoconf 
yum install automake

エラー:
Makefile.am:8: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:8:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:8:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:8:   If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:8:   its definition is in aclocal's search path.
/usr/share/automake-1.13/am/depend2.am: error: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/share/automake-1.13/am/depend2.am:   The usual way to define 'am__fastdepCXX' is to add 'AC_PROG_CXX'
/usr/share/automake-1.13/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again
/usr/share/automake-1.13/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.13/am/depend2.am:   The usual way to define 'AMDEP' is to add one of the compiler tests
/usr/share/automake-1.13/am/depend2.am:     AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX,
/usr/share/automake-1.13/am/depend2.am:     AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.13/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again
Makefile.am: error: C++ source seen but 'CXX' is undefined
Makefile.am:   The usual way to define 'CXX' is to add 'AC_PROG_CXX'
Makefile.am:   to 'configure.ac' and run 'autoconf' again.
autoreconf: automake failed with exit status: 1

報告ミスの原因はLIBTOOLというパッケージがないことが明らかです
解決:
yum install libtool

次に、
./autogen.sh //  
./configure	//  

誤報
checking for Berkeley DB C++ headers... no
configure: error: libdb_cxx headers missing, Omni Core requires this library for wallet functionality (--disable-wallet to disable wallet functionality)

Berkeley DBというデータベースが間違っています
インストールBerkeley DB:Ubuntuインストール:
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev

CentOSのダウンロードは成功しましたが、コンパイルに失敗しました
Since there is no libdb++ in official CentOs repo, I've done the following to fix this problem

Download sources of BerkeleyDb 4.8 //  BerkeleyDb    https://github.com/tinybike/get-bdb-4.8               
Go to /build_unix/
../dist/configure --prefix=/usr/local --enable-cxx
make
(as root) make `install`

CentOSではこの方法が有効です.
last,the resolution is:

wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-4.8.30-13.el7.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-devel-4.8.30-13.el7.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-cxx-4.8.30-13.el7.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-cxx-devel-4.8.30-13.el7.x86_64.rpm
and

rpm -ivh libdb4-4.8.30-13.el7.x86_64.rpm
rpm -ivh libdb4-devel-4.8.30-13.el7.x86_64.rpm
rpm -ivh libdb4-cxx-4.8.30-13.el7.x86_64.rpm 
rpm -ivh libdb4-cxx-devel-4.8.30-13.el7.x86_64.rpm​

インストールが完了したら、チェックを続行します.
./configure	//  

エラーの継続:
checking for boostlib >= 1.47.0... configure: We could not detect the boost libraries (version 1.47 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in . See http://randspringer.de/boost for more documentation.
checking whether the Boost::System library is available... no
checking whether the Boost::Filesystem library is available... no
checking whether the Boost::Program_Options library is available... no
checking whether the Boost::Thread library is available... no
checking whether the Boost::Chrono library is available... no
checking whether the Boost::Unit_Test_Framework library is available... no
checking for dynamic linked boost test... no
checking for mismatched boost c++11 scoped enums... ok
configure: error: No working boost sleep implementation found.
yum install boost-devel (old boost-devel-1.41.0-18.el6.x86_64)

エラー:
configure: error: openssl  not found.
yum install openssl-devel

エラー:
configure: error: libevent not found.
yum install libevent-devel

実行:
./configure
make

コンパイル完了後:
cd /src
./omnicored

起動に失敗しましたが、~/.bitcoin/ディレクトリが生成されます.bitcoin.confファイルの作成
tnet=1
server=1
rpcuser=
rpcpassword=
rpcallowip=116.25.41.18
rpcport=7778
txindex=1
datacarriersize=80
logtimestamps=1
omnidebug=tally
omnidebug=packets
omnidebug=pending
nohup ./omnicored --datadir=/data/btcdata --conf=/root/.bitcoin/bitcoin.conf -testnet&

まとめ(プロセスの簡素化)
1.usdtコアライブラリ:
git clone https://github.com/OmniLayer/omnicore.git
cd omnicore/

2.依存パッケージを先にインストール
$yum install libtool
$yum install gcc
$yum install gcc-g++
$yum install make
$yum install autoconfig
$yum install automake
$yum install libtool
yum install boost-devel (old boost-devel-1.41.0-18.el6.x86_64)
yum install openssl-devel
yum install libevent-devel

3.データベースlibdb 4のインストール
last,the resolution is:

wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-4.8.30-13.el7.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-devel-4.8.30-13.el7.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-cxx-4.8.30-13.el7.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-cxx-devel-4.8.30-13.el7.x86_64.rpm
and

rpm -ivh libdb4-4.8.30-13.el7.x86_64.rpm
rpm -ivh libdb4-devel-4.8.30-13.el7.x86_64.rpm
rpm -ivh libdb4-cxx-4.8.30-13.el7.x86_64.rpm 
rpm -ivh libdb4-cxx-devel-4.8.30-13.el7.x86_64.rpm​

4.コンパイル:
./autogen.sh
./configure
make

5.コンパイル完了後:
cd /src
./omnicored

エラーが表示されますが、~/.bitcoin/ディレクトリが生成されます.
6.bitcoin.confファイルの作成
tnet=1
server=1
rpcuser=
rpcpassword=
rpcallowip=116.25.41.18
rpcport=7778
txindex=1
datacarriersize=80
logtimestamps=1
omnidebug=tally
omnidebug=packets
omnidebug=pending

7.起動
nohup ./omnicored --datadir=/data/btcdata --conf=/root/.bitcoin/bitcoin.conf -testnet&