您的位置:首页 > 其它

Installing bitcoin in ubuntu

2014-04-19 10:47 267 查看
转自:http://birdchan.com/home/2013/11/26/installing-bitcoin-in-ubuntu/

Get the source first

1
2

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

You can read doc/build-unix.md, or follow along.

This step should be no problem.

1

./autogen.sh

This step may give you some issues…

1

./configure

If you encounter configure: error: libdb_cxx headers missing

1

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

If you encounter configure: error: Found Berkeley DB other than 4.8, required for portable wallets (–with-incompatible-bdb to ignore), run the following command instead. You can always send your bitcoins to another wallet.

1

./configure --with-incompatible-bdb

If you encounter checking for boostlib >= 1.20.0… configure: We could not detect the boost libraries (version 1.20 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give
a PATH to –with-boost option. If you are sure you have boost installed, then check your version number looking in . See http://randspringer.de/boost for more documentation.


1

sudo apt-get install libboost-all-dev

If you encounter no configure: error: openssl not found

1、sudo apt-get install openssl

2、sudo apt-get install libssl-dev

This time you may have a clean run. However, if you scroll up to check the output lines, you may see this line:configure: WARNING: MOC not found; bitcoin-qt frontend will not be built. If you want the frontend, run:

1

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

Then when you run configure again, you should see checking for moc-qt4… /usr/bin/moc-qt4.

Now, everything is ready.

1

make

The compilation took like 5 min.

Then install the compiled binary.

1

make install

Now just run the following to bring up the bitcoin frontend, yeah~~~

1

bitcoin-qt

To start mining, go to Help > Debug Window > Console and type in setgenerate true to turn it on. Typesetgenerate false to stop. My machine became really hot after a while, probably coz my CPU was struggling with all the
complex computations. I read that some people bought a separate GPU card for better performance, something to consider.

It’s worth noting that nowadays it’s very hard to efficiently mine bitcoins alone without dedicated software and hardware. Often miners form a pool (or a group) to speed up the process and share the profit. Read more at:

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

https://en.bitcoin.it/wiki/Comparison_of_mining_pools
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: