位元幣版本是 bitcoin-0.12
問題1:
[root@localhost bitcoin-master]# ./autogen.sh
which: no autoreconf in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
configuration failed, please install autoconf first
[root@localhost bitcoin-master]# yum install autoconf automake libtool
問題2:
checking whether the c++ compiler works... no
configure: error: in `/home/ljw/bitcoin-master':
configure: error: c++ compiler cannot create executables
see `config.log' for more details
[root@localhost bitcoin-master]# yum install gcc-c++
問題3:
checking for berkeley db c++ headers... no
configure: error: libdb_cxx headers missing, bitcoin core requires this library for wallet functionality (--disable-wallet to disable wallet functionality)
[root@localhost ljw]# cd db-4.8.30/build_unix/
[root@localhost build_unix]# ../dist/configure --enable-cxx
[root@localhost build_unix]# make
[root@localhost build_unix]# make install
[root@localhost db-4.8.30]# cd /home/ljw/bitcoin-master
[root@localhost bitcoin-master]# ./configure ldflags="-l/usr/local/berkeleydb.4.8/lib/" cppflags="-i/usr/local/berkeleydb.4.8/include/"
問題4:
configure: error: no working boost sleep implementation found.
[root@localhost ljw]# cd boost_1_63_0
[root@localhost boost_1_63_0]# ./bootstrap.sh
[root@localhost boost_1_63_0]# ./bjam install
問題5:
checking for ssl... no
configure: error: openssl not found.
[root@localhost bitcoin-master]# yum install openssl-devel
問題6:
checking for event... no
configure: error: libevent not found.
[root@localhost bitcoin-master]# yum install libevent-devel
//可能有效的庫
sudo dnf install gcc-c++ libtool make autoconf automake openssl-devel libevent-devel boost-devel libdb4-devel libdb4-cxx-devel
來自redhat的錯誤,當安裝lievent時的錯誤處理
問題1:
checking for event... no
configure: error: libevent not found.
解決:tar -zxvf libevent-2.0.19-stable.tar.gz
cd libevent-2.0.19-stable/
./configure
make && make install
此時會生成libevent.pc在本地目錄。拷貝到pkgconfig目錄下。
[root@c04502 libevent-release-2.1.7-rc] cp ./libevent.pc /usr/share/pkgconfig/.
問題2:
configure: error: libevent_pthreads not found.
解決:[root@c04502 libevent-release-2.1.7-rc] cp ./libevent_pthreads.pc /usr/share/pkgconfig/.
問題3:
對於m4_pattern_allow的問題 (低版本的redhat的可能會出現的問題)
去configure.ac中遮蔽掉對應的語句即可,但是這也會導致後續的庫的鏈結的問題,具體出現在.confiugre中,需要指定新增了boost和openssl的庫的路徑。
所以不推薦使用低版本的redhat作為執行機器。
centos7和redhat7的位元幣環境搭建
位元幣版本是 bitcoin 0.12 問題1 root localhost bitcoin master autogen.sh which no autoreconf in usr local sbin usr local bin usr sbin usr bin root bin configu...
redhat7 配置使用centos的yum源
this system is not registered to red hat subscription management.you can use subscription manager to register.無法更新。redhat 預設自帶的 yum 源需要註冊,才能更新。我們想不花錢也...
redhat7 配置使用centos的yum源
this system is not registered to red hat subscription management.you can use subscription manager to register.無法更新。redhat 預設自帶的 yum 源需要註冊,才能更新。我們想不花錢也...