Pages:
Author

Topic: [HOWTO] One line to download & compile bitcoin 0.5.0rc3 on Ubuntu (UPDATED) (Read 2290 times)

full member
Activity: 156
Merit: 100
Firstbits: 1dithi
Updated the post with 0.5.0rc3. Tell me if you encounter any issues. (edit: reverted to rc1, there's an issue with miniupnpc, I'll look it up tomorrow)
k
sr. member
Activity: 451
Merit: 250
Did you use my one-liner? In that case, can you paste here the output of this?
Code:
apt-cache search libdb|cut -d' ' -f1|grep '++-dev'


Ran the above and got this

Code:
libdb++-dev
libdb5.1++-dev
libdbus-c++-dev



I see. I've fixed the first post to work also on your system.

Thank you, that worked a charm.
full member
Activity: 156
Merit: 100
Firstbits: 1dithi
Did you use my one-liner? In that case, can you paste here the output of this?
Code:
apt-cache search libdb|cut -d' ' -f1|grep '++-dev'


Ran the above and got this

Code:
libdb++-dev
libdb5.1++-dev
libdbus-c++-dev



I see. I've fixed the first post to work also on your system.
hero member
Activity: 756
Merit: 500
Just nice for me, about to install another Ubuntu system.  Normally installing bitcoin give me tons of problems.
k
sr. member
Activity: 451
Merit: 250
Did you use my one-liner? In that case, can you paste here the output of this?
Code:
apt-cache search libdb|cut -d' ' -f1|grep '++-dev'


Ran the above and got this

Code:
libdb++-dev
libdb5.1++-dev
libdbus-c++-dev

full member
Activity: 156
Merit: 100
Firstbits: 1dithi
Did you use my one-liner? In that case, can you paste here the output of this?
Code:
apt-cache search libdb|cut -d' ' -f1|grep '++-dev'
k
sr. member
Activity: 451
Merit: 250
In Ubuntu 11.10, I'm getting the following when I try to compile.

Code:
In file included from src/qt/bitcoin.cpp:9:0:
src/headers.h:36:20: fatal error: db_cxx.h: No such file or directory
compilation terminated.
make: *** [build/bitcoin.o] Error 1

Anyone have any ideas?
full member
Activity: 154
Merit: 102
Bitcoin!
Not a problem.  Thank you for the reply!
full member
Activity: 156
Merit: 100
Firstbits: 1dithi
New question.  Would you be able to help me out with Ubuntu installation instructions for a CPU miner such as Ufasoft?  (I know CPU mining is not economically feasible, I'm doing this as a learning experience).

Sorry for late reply. Use the same instructions above but adding these options to cgminer: -C -G  (both upper case, C enables cpu mining and G disables gpu mining).
full member
Activity: 154
Merit: 102
Bitcoin!
New question.  Would you be able to help me out with Ubuntu installation instructions for a CPU miner such as Ufasoft?  (I know CPU mining is not economically feasible, I'm doing this as a learning experience).
full member
Activity: 154
Merit: 102
Bitcoin!
full member
Activity: 156
Merit: 100
Firstbits: 1dithi
You need recent GPU drivers for that (at least for nvidia, I don't know about ati), so update Ubuntu to 11.10 if you haven't already. Also you'll need a 64 bit distro (I suppose it could work on 32 bit, but having a 64 bit cpu it's pointless not to use a 64 bit linux; cpu intensive tasks perform much better).

Code:
wget -O- http://ck.kolivas.org/apps/cgminer/cgminer-2.0.7-x86_64-built.tar.bz2|tar jxv

I haven't tried solo mining... Register on any mining pool; I've tried http://yourbtc.net/ and it's easy. Add a worker, it gives you a user and a pass. Suppose those are 12345 and PaSsWd.

Code:
cd cgminer-2.0.7; ./cgminer -o http://yourbtc.net:8999/ -u 12345 -p PaSsWd

Look here for more commandline options: https://bitcointalksearch.org/topic/official-cgminer-mining-software-thread-for-linuxwinosxmipsarmr-pi-4110-28402

As I said I use nvidia, which is not very good for mining (ati is 3x faster for calculating hashes)...
full member
Activity: 154
Merit: 102
Bitcoin!
Good job DiThi!  Now how about instructions like this to install a miner? Smiley  (pretty please?)
full member
Activity: 156
Merit: 100
Firstbits: 1dithi
Oops, Ubuntu 11.10 doesn't have that version (I just updated this PC today). It has 5.1 but 10.10 doesn't. I've updated the post to autodetect the last libdb++ version. Hopefully it will work now on any Ubuntu, at least since 10.04.
newbie
Activity: 8
Merit: 0
Just for your information: libdb4.8++-dev is not available in Ubuntu's repositories. How to get it elsewhere?
legendary
Activity: 3066
Merit: 1147
The revolution will be monetized!
That did the trick! Thanks.
There is also a PPA for Ubuntu, but it has not been updated and still serves version 0.3.24 of the client.
full member
Activity: 156
Merit: 100
Firstbits: 1dithi
Thanks for reporting. It seems I already had that lib. I edited the post, try now and tell me if you get any other error Smiley
legendary
Activity: 3066
Merit: 1147
The revolution will be monetized!
I get a build error under Ubuntu 10.10. It downloads fine then fails upon compiling.
Still, thanks for your work! I'm sure it can be tweaked.

Code:
src/headers.h:30: fatal error: openssl/buffer.h: No such file or directory
compilation terminated.
make: *** [build/bitcoin.o] Error 1
full member
Activity: 156
Merit: 100
Firstbits: 1dithi
It's not a typo. libdb++ is needed, and also installs libdb as dependency. I usually try my one-liners before (and sometimes after) posting them. Notice how I also added automatic detection of number of processors, for efficency Smiley
sr. member
Activity: 294
Merit: 252
I guess there's a typo. Instead of libdb4.8++-dev you should type libdb4.8-dev. Still, I'm unsure.

Unsure about what? This is pretty cool!
Pages:
Jump to: