Post
Topic
Board Development & Technical Discussion
Topic OP
Debian 7 + bitcoind from source + libdb5.1 = nope [SOLVED]
by
w00dy
on 30/11/2013, 20:51:33 UTC
- i want to compile bitcoind on Debian 7.2 x64
- i can NOT install libdb4.x dev packages because it breaks other stuff on the box.
- i don't care about the wallet. i just need to run bitcoind on this box
- litecoind (latest) is running fine.... compiled on this box.

the kernel:
Code:
Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.51-1

after a git clone i do a ./autogen.sh  

the ./configure breaks with
Code:
configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore)

ok... no problem... just "fix" it with "--with-incompatible-bdb".
the ./configure runs through and i can do a "make".


bitcoind builds successfully but if i try to run it i get
Code:
Error: Error initializing wallet database environment /home/bitcoin/.bitcoin!


debug.log
Code:
2013-11-30 20:14:35 Bitcoin version v0.8.2-827-gb78d1cd-beta (2013-11-29 22:04:18 -0800)
2013-11-30 20:14:35 Using OpenSSL version OpenSSL 1.0.1e 11 Feb 2013
2013-11-30 20:14:35 Default data directory /home/bitcoin/.bitcoin
2013-11-30 20:14:35 Using data directory /home/bitcoin/.bitcoin
2013-11-30 20:14:35 Using at most 125 connections (1024 file descriptors available)
2013-11-30 20:14:35 Using 4 threads for script verification
2013-11-30 20:14:35 init message: Verifying wallet...
2013-11-30 20:14:35 dbenv.open LogDir=/home/bitcoin/.bitcoin/database ErrorFile=/home/bitcoin/.bitcoin/db.log
2013-11-30 20:14:35 ERROR: CDB() : error Invalid argument (22) opening database environment
2013-11-30 20:14:35 Moved old /home/bitcoin/.bitcoin/database to /home/bitcoin/.bitcoin/database.1385842475.bak. Retrying.
2013-11-30 20:14:35 dbenv.open LogDir=/home/bitcoin/.bitcoin/database ErrorFile=/home/bitcoin/.bitcoin/db.log
2013-11-30 20:14:35 ERROR: CDB() : error Invalid argument (22) opening database environment
2013-11-30 20:14:35 Error: Error initializing wallet database environment /home/bitcoin/.bitcoin!
2013-11-30 20:14:35 Shutdown : In progress...
2013-11-30 20:14:35 StopNode()
2013-11-30 20:14:35 Shutdown : done


even tho it says "init message: Verifying wallet..." - there is no wallet.dat.


the only "fix" for this error i found via google is pretty much a "delete .bitcoin"... but it does not work here. no matter what i do, it fails always with "Error initializing wallet database environment"

 Embarrassed

any1?