首页 技术 正文
技术 2022年11月14日
0 收藏 519 点赞 2,327 浏览 1268 个字

body{
font: 16px/1.5em 微软雅黑,arial,verdana,helvetica,sans-serif;
}

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

比特币Bitcoin源代码安装编译

 

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

同时也可以参考build官方文档

 
先拉下源代码:

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的数据需要下载。
也可以从这里下载文件,以加快速度。后续会介绍关于比特币的更多内容。有兴趣可以阅读它的源代码。

 

资料LINK:

BitCoin比特币 wiki

https://en.bitcoin.it/wiki/Main_Page

Bitcoin比特币 源代码文档

https://dev.visucore.com/bitcoin/doxygen/files.html

Bitcoin比特币 中国

http://www.btcchina.org

 

作者:Petter Liu
出处:http://www.cnblogs.com/wintersun/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
该文章也同时发布在我的独立博客中-Petter Liu Blog

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,489
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,904
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,737
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,490
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:8,128
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:5,291