导读 比特币 (货币符号: ฿;英文名:Bitcoin;英文缩写: BTC),是一种用于开源的P2P软件而产生的电子货币。

比特币全局图是这样的:

在这儿主要介绍Linux下的比特币Bitcoin安装,我们选择ubuntu 12.04的环境,安装相对容易得多。Windows下并不推荐,因为基于mingW配置相以繁琐。

先拉下源代码

git clone https://github.com/bitcoin/bitcoin.git

安装Berkeley DB 4.8以上版本:

sudo apt-get install libdb5.1++-dev

然后进入到相关目录:

cd bitcoin

./autogen.sh
./configure

如果你遇到这样的提示:configure: error: Found Berkeley DB other than 4.8, required for portable wallets 那就可以这样:

./configure --with-incompatible-bdb

如查遇到到这样的提示:checking for boostlib >= 1.20.0… configure: We could not detect the boost libraries (version 1.20 or higher). 那这样:

sudo apt-get install libboost-all-dev

然后再次configure,如果你需要bitcoin-qt前端,那需要安装

sudo apt-get install libqt4-core libqt4-gui libqt4-dev

再次configure,这次可以了

make

开始编译,大约5分钟,然后安装编译好的二进制文件

make install

想运行前端那执行

bitcoin-qt

服务端是

bitcoind  -server –printtoconcole

接到下,是否挖矿就看您自己了。以当前时间为起点,连接testnet有9G的blockchain数据需要下载,livesite有35G的数据需要下载。

原文来自:https://www.cnblogs.com/wintersun/p/3813424.html

本文地址:https://www.linuxprobe.com/bitcoin-new.html编辑:xiangping wu,审核员:逄增宝

Linux命令大全:https://www.linuxcool.com/

Linux系统大全:https://www.linuxdown.com/

红帽认证RHCE考试心得:https://www.rhce.net/