將壓縮檔案考到對應目錄解壓:
unzip bitcoin-master.zip
總的安裝流程,但是過程中會遇到一些問題:
cd bitcoin-master
./autogen.sh
./configure
make
make install
./autogen.sh
configure failed, please install autoconf first
sudo apt-get install autoconf
./autogen.sh
error: c++ source seen but 'cxx' is undefined
sudo apt-get install libtool
./configure
error: libdb_cxx headers missing
./configure ldflags="-l/usr/local/berkeleydb.18.1/lib/" cppflags="-i/usr/local/berkeleydb.18.1/include/" --with-incompatible-bdb
error could not detect the boost libraries
sudo apt-get install libboost-all-dev
./configure ldflags="-l/usr/local/berkeleydb.18.1/lib/" cppflags="-i/usr/local/berkeleydb.18.1/include/" --with-incompatible-bdb
error openssl not found
sudo apt-get install openssl
sudo apt-get install libssl-dev
./configure ldflags="-l/usr/local/berkeleydb.18.1/lib/" cppflags="-i/usr/local/berkeleydb.18.1/include/" --with-incompatible-bdb
error libevent not found
sudo apt-get install libevent.dev
make過程中也存在一些問題:
make
g++: internal compiler error: killed(program cc 1plus)
問題是記憶體不足導致的,解決辦法使用交換分割槽(1g):
sudo dd if=/dev/zero of=/swapfile bs=64m count=16
sudo mkswap /swapfile
sudo swapon /swapfile
make
/bin/bash: ../share/genbuild.sh: permission denied
cd /bitcoin-master/share
chmod 777 genbuild.sh
安裝成 UBUNTU編譯安裝SVN
cd usr mkdir yuan cd yuan 獲得安裝檔案 tar zfxv apr 1.5.2.tar.gz tar zfxv apr util 1.5.4.tar.gz tar zfxv subversion 1.9.2.tar.gz tar zfxv zlib 1.2.8.tar.mid...
Ubuntu編譯安裝llvm clang
llvm llvm tools clang llvm projects compiler rt wget mv llvm 3.6.0.src llvm cd llvm tools wget tar xf cfe 3.6.0.src.tar.xz mv cfe 3.6.0.src clang cd l...
Ubuntu編譯安裝Keepalived
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!keepalived是一種防止單點故障的高可用解決方案。cd usr wget 解壓 tar zxvf keepalived 1.2.7.tar.gz 編譯之前需要安裝幾個程式庫 apt get install libssl devapt get ...