Pages:
Author

Topic: Bitcoin on Ubuntu 11.04 (Read 24736 times)

newbie
Activity: 1
Merit: 0
June 10, 2011, 07:47:55 AM
#59
I think maybe it is time to switch from wxWidgets to Qt?
+1
newbie
Activity: 30
Merit: 0
May 17, 2011, 10:26:30 PM
#58
deleted /bitcoin folder (with its subfolders) and re-installed.  Same error.

I will say that something just didn't seem right about the initial Bitcoin install.  It never created a wallet.dat file, I searched high and low, even used the Ubuntu file search.  I thought, well maybe it's only created on first use.  So I sent 0.01 BTC from my windows box to Ubuntu.  Never arrived.  That was about the time of the freeze-up too.  Now I've got a 0/unconfirmed transaction in my windows Bitcoin (whatever becomes of those orphaned trans?).
hero member
Activity: 755
Merit: 515
May 17, 2011, 05:09:34 AM
#57
Can I just delete and re-run the script? There was nothing in the /bitcoin folder I needed.  In fact I don't think it ever created a wallet.dat file
Yea, if you dont have any coins in your wallet.dat, just rm -r ~/.bitcoin and move on with it (though remember, that will delete all your coins so...)
newbie
Activity: 53
Merit: 0
May 17, 2011, 01:31:49 AM
#56
OK I had a system lock-up necessitating a hard reset.  Now Bitcoin won't start:

  EXCEPTION: 22DbRunRecoveryException      
   DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery      
   bitcoin in AppInit()


Can I just delete and re-run the script? There was nothing in the /bitcoin folder I needed.  In fact I don't think it ever created a wallet.dat file

If you delete wallet.dat you lose all your bitcoins. You can delete everything in .bitcoin but NOT Wallet.dat and Bitcoin.conf
newbie
Activity: 30
Merit: 0
May 16, 2011, 10:22:58 PM
#55
OK I had a system lock-up necessitating a hard reset.  Now Bitcoin won't start:

   EXCEPTION: 22DbRunRecoveryException       
   DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery       
   bitcoin in AppInit()


Can I just delete and re-run the script? There was nothing in the /bitcoin folder I needed.  In fact I don't think it ever created a wallet.dat file
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
May 15, 2011, 04:15:36 PM
#54
Mines working here (Ubuntu Natty fresh installed about 2 weeks ago) although i always open mine from the command line and leave it open(helps debugging and just a habit really) try opening from command line if it hasnt already been suggested.
newbie
Activity: 33
Merit: 0
May 15, 2011, 04:48:00 AM
#53
I don't understand what your saying, Walidzohair. What's the "sp"? EDIT: oh right, spesmilo.
If you're having trouble, it may be because my script is fetching the very latest sources of wxwidgets. But I can't seem to find a complete archive of the daily snapshots. They only seem to keep them for 3 days so I can't link to one that is known to be functional.

Also, I edited my previous post so it would compile bitcoind too.
full member
Activity: 184
Merit: 100
May 15, 2011, 01:07:46 AM
#52
Here is a script that will do absolutely everything - including downloads - in order to get a compiled version of bitcoin working in Natty (with the GUI fixed of course): http://pastebin.com/JLxKKpuq
Actually, I'll even put it here directly:
Code:
#!/bin/bash
echo "DISCLAIMER: you are using this script at your own discretion! By typing 'c', you agree that you have read the script yourself and have understood it and that you will thus take full responsabilty in the eventuality that this script leads to any harm to you or your property. If you do not agree type 'n'"
read -n 1 r
[ "$r" = 'c' ] || exit 0

set -e

echo "You will be prompted to enter your password in order to install necessary dependencies."

sudo apt-get install build-essential libgtk2.0-dev libssl-dev libdb4.7-dev libdb4.7++-dev libboost-all-dev
sudo apt-get build-dep libwxgtk2.8-dev

mkdir bitcoin || true
cd bitcoin

[ -e wxWidgets.tar.gz ] || wget "http://biolpc22.york.ac.uk/pub/Daily_HEAD/wxWidgets.tar.gz"
[ -e wxWidgets ] || tar -xvzf wxWidgets.tar.gz
cd wxWidgets
./configure
make -j3
sudo make install
sudo ldconfig
cd ..

[ -e miniupnpc*.tar.gz ] || wget "http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.5.tar.gz"
[ -e miniupnpc*/ ] || tar -xvzf *miniupnpc*.tar.gz
cd *miniupnpc*/
make
sudo make install
cd ..

#for some reason, github's certificate doesn't work:
[ -e bitcoin*.tar.gz ] || wget --no-check-certificate "https://www.github.com/bitcoin/bitcoin/tarball/v0.3.21"
[ -e bitcoin*/ ] || tar -xvzf "v0.3.21"
cd bitcoin*/
make -f makefile.unix
#optional:
strip bitcoin
echo "Bitcoin is now compiled : '$PWD/bitcoin'"
echo "Launch bitcoin now? (y/n)"
read -n1 r
[[ "$r" = y ]] && ./bitcoin
cd ..
To run it: save it in your home folder as bitcoinfornatty.bash, open a terminal (ctrl+alt+t), type "bash ./bitcoinfornatty.bash", press enter (yeah, some people don't even get that you have to press enter) and READ THE DISCLAIMER.
Also, you agree that I will not be held responsible for any inconsistencies between my disclaimer and the amount of detail in my instructions.
Don't hesitate to report any problems.

Thanks a lot man for your time,


This what I call a true piece of work and help.

I will try it and post either way


did not work from first time and by the moment i discovered i need to bash it instead of sh it. i decided to go throw it manually and yet after a painful long compilation of the wx it works with an assertion error (as usual) .. i will give the other sp something trial but i will stick with the bitcoin Sad

If i ever try the sp somthing I will post back here too.
full member
Activity: 184
Merit: 100
May 15, 2011, 12:40:34 AM
#51
Hi,

I think wxwidget is one big problem to bitcoin, why don't try using spesmilo gui for bitcoin ?, you can find it using the search command in the forum.

I will like create one package from spesmilo.

Greeting's.

Nope thanks for your efforts but this time i will stick to bitcoin client.
newbie
Activity: 30
Merit: 0
May 13, 2011, 01:23:13 AM
#50
wolciph, thanks for the script; it worked!
I notice it installed to a 'user/bitcoin/bitcoin-bitcoin-12345e2' folder, that no 'daemon' folder was created, and with no bitcoind executable.  
When I use the "-server" option, I get a Warning about setting rpcpassword in the configuration file: /home/user/.bitcoin/bitcoin.conf' even though I did create that file.

I can't get it running in server mode.

EDIT: I got Bitcoin working in server mode by creating a 'bitcoin.conf' file within that 'bitcoin-bitcoin-12345e2' subfolder and then launching with this command: ./bitcoin -server -rpcuser=user -rpcpassword=pass

CPU mines at over 5 Mhash/s.  Now I will attempt to get a GPU miner going.

THANK YOU.
newbie
Activity: 40
Merit: 0
May 12, 2011, 02:05:42 AM
#49
Hi,

I think wxwidget is one big problem to bitcoin, why don't try using spesmilo gui for bitcoin ?, you can find it using the search command in the forum.

I will like create one package from spesmilo.

Greeting's.
newbie
Activity: 1
Merit: 0
May 10, 2011, 04:07:43 PM
#48
I got it to work for the most part, but eventually I get an error (after the programs are installed, but before it makes a bitcoin directory)
it says:

Code:
ERROR: Build failed. Please review the build log at /tmp/alsa-driver-linuxant.29315.log
dpkg: error processing alsa-driver-linuxant (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 alsa-driver-linuxant
E: Sub-process /usr/bin/dpkg returned an error code (1)
full member
Activity: 184
Merit: 100
May 10, 2011, 01:05:10 AM
#47
Here is a script that will do absolutely everything - including downloads - in order to get a compiled version of bitcoin working in Natty (with the GUI fixed of course): http://pastebin.com/JLxKKpuq
Actually, I'll even put it here directly:
Code:
#!/bin/bash
echo "DISCLAIMER: you are using this script at your own discretion! By typing 'c', you agree that you have read the script yourself and have understood it and that you will thus take full responsabilty in the eventuality that this script leads to any harm to you or your property. If you do not agree type 'n'"
read -n 1 r
[ "$r" = 'c' ] || exit 0

set -e

echo "You will be prompted to enter your password in order to install necessary dependencies."

sudo apt-get install build-essential libgtk2.0-dev libssl-dev libdb4.7-dev libdb4.7++-dev libboost-all-dev
sudo apt-get build-dep libwxgtk2.8-dev

mkdir bitcoin || true
cd bitcoin

[ -e wxWidgets.tar.gz ] || wget "http://biolpc22.york.ac.uk/pub/Daily_HEAD/wxWidgets.tar.gz"
[ -e wxWidgets ] || tar -xvzf wxWidgets.tar.gz
cd wxWidgets
./configure
make -j3
sudo make install
sudo ldconfig
cd ..

[ -e miniupnpc*.tar.gz ] || wget "http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.5.tar.gz"
[ -e miniupnpc*/ ] || tar -xvzf *miniupnpc*.tar.gz
cd *miniupnpc*/
make
sudo make install
cd ..

#for some reason, github's certificate doesn't work:
[ -e bitcoin*.tar.gz ] || wget --no-check-certificate "https://www.github.com/bitcoin/bitcoin/tarball/v0.3.21"
[ -e bitcoin*/ ] || tar -xvzf "v0.3.21"
cd bitcoin*/
make -f makefile.unix
#optional:
strip bitcoin
echo "Bitcoin is now compiled : '$PWD/bitcoin'"
echo "Launch bitcoin now? (y/n)"
read -n1 r
[[ "$r" = y ]] && ./bitcoin
cd ..
To run it: save it in your home folder as bitcoinfornatty.bash, open a terminal (ctrl+alt+t), type "bash ./bitcoinfornatty.bash", press enter (yeah, some people don't even get that you have to press enter) and READ THE DISCLAIMER.
Also, you agree that I will not be held responsible for any inconsistencies between my disclaimer and the amount of detail in my instructions.
Don't hesitate to report any problems.

Thanks a lot man for your time,


This what I call a true piece of work and help.

I will try it and post either way
newbie
Activity: 33
Merit: 0
May 07, 2011, 06:10:59 PM
#46
Here is a script that will do absolutely everything - including downloads - in order to get a compiled version of bitcoin working in Natty (with the GUI fixed of course): http://pastebin.com/JLxKKpuq
Actually, I'll even put it here directly:
Code:
#!/bin/bash
echo "DISCLAIMER: you are using this script at your own discretion! By typing 'c', you agree that you have read the script yourself and have understood it and that you will thus take full responsabilty in the eventuality that this script leads to any harm to you or your property. If you do not agree type 'n'"
read -n 1 r
[ "$r" = 'c' ] || exit 0

set -e

echo "You will be prompted to enter your password in order to install necessary dependencies."

sudo apt-get install build-essential libgtk2.0-dev libssl-dev libdb4.7-dev libdb4.7++-dev libboost-all-dev
sudo apt-get build-dep libwxgtk2.8-dev

mkdir bitcoin || true
cd bitcoin

[ -e wxWidgets.tar.gz ] || wget "http://biolpc22.york.ac.uk/pub/Daily_HEAD/wxWidgets.tar.gz"
[ -e wxWidgets ] || tar -xvzf wxWidgets.tar.gz
cd wxWidgets
./configure
make -j3
sudo make install
sudo ldconfig
cd ..

[ -e miniupnpc*.tar.gz ] || wget "http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.5.tar.gz"
[ -e miniupnpc*/ ] || tar -xvzf *miniupnpc*.tar.gz
cd *miniupnpc*/
make
sudo make install
cd ..

#for some reason, github's certificate doesn't work:
[ -e bitcoin*.tar.gz ] || wget --no-check-certificate "https://www.github.com/bitcoin/bitcoin/tarball/v0.3.21"
[ -e bitcoin*/ ] || tar -xvzf "v0.3.21"
cd bitcoin*/
make -f makefile.unix
make -f makefile.unix bitcoind
#optional:
strip bitcoin; strip bitcoind;
echo "Bitcoin is now compiled : '$PWD/bitcoin'"
echo "Launch bitcoin now? (y/n)"
read -n1 r
[[ "$r" = y ]] && ./bitcoin
cd ..
To run it: save it in your home folder as bitcoinfornatty.bash, open a terminal (ctrl+alt+t), type "bash ./bitcoinfornatty.bash", press enter (yeah, some people don't even get that you have to press enter) and READ THE DISCLAIMER.
Also, you agree that I will not be held responsible for any inconsistencies between my disclaimer and the amount of detail in my instructions.
Don't hesitate to report any problems.

EDIT: added lines:
Code:
make -f makefile.unix bitcoind
#optional:
strip bitcoin; strip bitcoind;
It will now build bitcoind also.
full member
Activity: 184
Merit: 100
May 07, 2011, 07:20:50 AM
#45
and here is the error i get when i try to compile with sudo make -f makefile.unix USE_UPNP=

obj/db.o: In function `CWalletDB::LoadWallet()':
/home/walid/Downloads/src/bitcoin-trunk/db.cpp:811: undefined reference to `fUseUPnP'
obj/db.o: In function `Unserialize':
/home/walid/Downloads/src/bitcoin-trunk/serialize.h:136: undefined reference to `fUseUPnP'
collect2: ld returned 1 exit status
make: *** [bitcoin] Error 1
What compiler? ie gcc -v

I have no idea i just type in the command and I am using the default with ubuntu natty
hero member
Activity: 755
Merit: 515
May 06, 2011, 04:42:19 AM
#44
and here is the error i get when i try to compile with sudo make -f makefile.unix USE_UPNP=

obj/db.o: In function `CWalletDB::LoadWallet()':
/home/walid/Downloads/src/bitcoin-trunk/db.cpp:811: undefined reference to `fUseUPnP'
obj/db.o: In function `Unserialize':
/home/walid/Downloads/src/bitcoin-trunk/serialize.h:136: undefined reference to `fUseUPnP'
collect2: ld returned 1 exit status
make: *** [bitcoin] Error 1
What compiler? ie gcc -v
member
Activity: 116
Merit: 10
May 06, 2011, 01:27:03 AM
#43
any help ?
Which Version are you using?
full member
Activity: 184
Merit: 100
May 05, 2011, 01:54:12 PM
#42
any help ?
full member
Activity: 184
Merit: 100
May 05, 2011, 10:52:46 AM
#41
I dunno if it is me the unlucky one or if there is something wrong with my system .. but now after i deleted every thing in my .bitcoin folder except the wallet.dat .. when i run the program it is fine and trying to pull the block chain and every thing is OK

BUT

when i click on the sent tab it gives an error that says

An Assertion failed!

./src/comoon/evtloopcmn.cpp(755):asser "assert failure"
failed in Yield(): wxYield called recursivley

it just continue if i press continue

finally it is my thrid day and not being able to pull all the chain block yet .. is that normal ?

and here is the error i get when i try to compile with sudo make -f makefile.unix USE_UPNP=

obj/db.o: In function `CWalletDB::LoadWallet()':
/home/walid/Downloads/src/bitcoin-trunk/db.cpp:811: undefined reference to `fUseUPnP'
obj/db.o: In function `Unserialize':
/home/walid/Downloads/src/bitcoin-trunk/serialize.h:136: undefined reference to `fUseUPnP'
collect2: ld returned 1 exit status
make: *** [bitcoin] Error 1



donator
Activity: 213
Merit: 100
SEIZED by Gunthar
May 05, 2011, 01:47:08 AM
#40
Had the same problem, BlueMatt's version fixed it. Thanks!
Pages:
Jump to: