Bitcoin Forum
June 17, 2024, 05:32:40 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Command bitcoin-cli getaccountaddress method not found  (Read 2282 times)
Maik_37 (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
May 30, 2015, 07:01:42 PM
 #1

I was able to compile and install bitcoin on debian 7 and when do: bitcoind-cli getinfo

{
    "version" : 100200,
    "protocolversion" : 70002,
    "blocks" : 330412,
    "timeoffset" : -4,
    "connections" : 17,
    "proxy" : "",
    "difficulty" : 39603666252.41841125,
    "testnet" : false,
    "relayfee" : 0.00001000,
    "errors" : ""
}

But if I want to create a new address and do: bitcoin-cli getaccountaddress I get a strange error " error {"code": - 32601, "message": "Method not found"} "
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3430
Merit: 6705


Just writing some code


View Profile WWW
May 30, 2015, 07:22:54 PM
 #2

Did you compile Bitcoin with wallet support? Could you show us your debug.log?

Maik_37 (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
May 30, 2015, 07:52:35 PM
 #3

I compiled bitcoind following this guide http://bitcoin-austria.at/artikel/full-bitcoind-node-debian-7-server  the debug file is too large are 4.5 Mb how can I do to publish
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3430
Merit: 6705


Just writing some code


View Profile WWW
May 30, 2015, 07:55:59 PM
 #4

I compiled bitcoind following this guide http://bitcoin-austria.at/artikel/full-bitcoind-node-debian-7-server  the debug file is too large are 4.5 Mb how can I do to publish
That's the problem. You compiled with --disable-wallet option and this prevents you from being able to use the getaccountaddress option which requires a wallet. Try recompiling using these instructions instead: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md

Maik_37 (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
May 30, 2015, 08:03:31 PM
 #5

I compiled bitcoind following this guide http://bitcoin-austria.at/artikel/full-bitcoind-node-debian-7-server  the debug file is too large are 4.5 Mb how can I do to publish
That's the problem. You compiled with --disable-wallet option and this prevents you from being able to use the getaccountaddress option which requires a wallet. Try recompiling using these instructions instead: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md
I realized I too when I read " When the intention is to run only a P2P node without a wallet, bitcoin may be compiled in disable-wallet mode with:

./configure --disable-wallet "
Maik_37 (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
May 30, 2015, 08:21:58 PM
 #6

After ./configure gives me an error: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality) I tried to give ./configure --with-bdb-compatible and ./configure --with-bdb-compatible \ but I always get the same error. How can I fix
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3430
Merit: 6705


Just writing some code


View Profile WWW
May 30, 2015, 08:27:52 PM
 #7

After ./configure gives me an error: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality) I tried to give ./configure --with-bdb-compatible and ./configure --with-bdb-compatible \ but I always get the same error. How can I fix
That means that the BerkeylyDB version is not compatible with Bitcoin core. To install the correct one, run these:
Code:
deb http://[mirror]/debian/ oldstable main
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev

Then compile.

Maik_37 (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
May 30, 2015, 08:48:50 PM
 #8

After ./configure gives me an error: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality) I tried to give ./configure --with-bdb-compatible and ./configure --with-bdb-compatible \ but I always get the same error. How can I fix
That means that the BerkeylyDB version is not compatible with Bitcoin core. To install the correct one, run these:
Code:
deb http://[mirror]/debian/ oldstable main
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev

Then compile.

When do I get sudo apt-get install libdb4.8-dev libdb4.8++-dev: Package 'libdb4.8-dev' has no installation candidate
E: Package 'libdb4.8 ++ - dev' has no installation candidate
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3430
Merit: 6705


Just writing some code


View Profile WWW
May 30, 2015, 09:01:55 PM
 #9

When do I get sudo apt-get install libdb4.8-dev libdb4.8++-dev: Package 'libdb4.8-dev' has no installation candidate
E: Package 'libdb4.8 ++ - dev' has no installation candidate
Oops, Sorry I made a mistake.

Open /etc/apt/sources.list and add the line
Code:
deb http://[mirror]/debian/ oldstable main
where [mirror] is
Code:
ftp.<country>.debian.org
and <country> is any country on this list: https://www.debian.org/mirror/official#list.

Then run
Code:
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
and compile

Maik_37 (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
May 30, 2015, 09:15:45 PM
 #10

I followed to the letter all that you told me but I always get: Reading package lists ... Done
Building dependency tree
Reading state information ... Done
Package libdb4.8 ++ - dev is not available, but is Referred to by another package.
This may mean That the package is missing, Has Been obsoleted, or
is only available from another source
Package libdb4.8-dev is not available, but is Referred to by another package.
This may mean That the package is missing, Has Been obsoleted, or
is only available from another source
E: Package 'libdb4.8-dev' has no installation candidate
E: Package 'libdb4.8 ++ - dev' has no installation candidate
Maik_37 (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
May 30, 2015, 09:26:19 PM
 #11

I solved the problem by sudo apt-get install db5.1-util
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!