基于Linux编译比特币
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
• apt-get install libevent-dev • apt-get install libtool
安装QT库
• sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
make make install
命令行输入 bitcoin-qt 启动客户端
总结
• sudo apt-get install libqrencode-dev
• sudo apt install qt4*
安装 BERKELEY DB 4.8
cd bitcoin mkdir bitcoin/db4/ wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz tar -xzvf db-4.8.30.NC.tar.gz cd db-4.8.30.NC/build_unix/ ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/home/<user_name>/bitcoin/db4/ make sudo make install
• apt-get install libboost-all-dev 或(apt-get install libboost1.58-dev) 或(apt-get install libboost-dev) apt-get install zlib1g-dev apt-get install libssl-dev apt-get install build-essential apt-get install libminiupnpc-dev apt-get install autoconf
基于LINUX编译比特币
主讲:毕远
安装ULeabharlann BaiduUNTU虚拟机
更换源
https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/ /etc/apt/sources.list
安装依赖
• apt-get install make apt-get install gcc apt-get install g++ apt-get install libdb-dev或(libdb5.1-dev) apt-get install libdb++-dev或(libdb++dev libdb5.1++ libdb5.1++-dev)
编译比特币
cd bitcoin
./autogen.sh
./configure LDFLAGS=“-L/home/<user_name>/bitcoin/db4/lib/” CPPFLAGS=“I/home/<user_name>/bitcoin/db4/include/“ --with-incompatible-bdb --with-gui=qt4
安装QT库
• sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
make make install
命令行输入 bitcoin-qt 启动客户端
总结
• sudo apt-get install libqrencode-dev
• sudo apt install qt4*
安装 BERKELEY DB 4.8
cd bitcoin mkdir bitcoin/db4/ wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz tar -xzvf db-4.8.30.NC.tar.gz cd db-4.8.30.NC/build_unix/ ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/home/<user_name>/bitcoin/db4/ make sudo make install
• apt-get install libboost-all-dev 或(apt-get install libboost1.58-dev) 或(apt-get install libboost-dev) apt-get install zlib1g-dev apt-get install libssl-dev apt-get install build-essential apt-get install libminiupnpc-dev apt-get install autoconf
基于LINUX编译比特币
主讲:毕远
安装ULeabharlann BaiduUNTU虚拟机
更换源
https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/ /etc/apt/sources.list
安装依赖
• apt-get install make apt-get install gcc apt-get install g++ apt-get install libdb-dev或(libdb5.1-dev) apt-get install libdb++-dev或(libdb++dev libdb5.1++ libdb5.1++-dev)
编译比特币
cd bitcoin
./autogen.sh
./configure LDFLAGS=“-L/home/<user_name>/bitcoin/db4/lib/” CPPFLAGS=“I/home/<user_name>/bitcoin/db4/include/“ --with-incompatible-bdb --with-gui=qt4