Discussion:
Setting up bitcoin dev environment ( bitcoind, bitcoin-cli )
(too old to reply)
Maksim Solovjov via bitcoin-dev
2018-02-09 10:55:44 UTC
Permalink
Raw Message
Hi guys,

I am trying to set up the bitcoin development environment on my Mac.

I installed the Bitcoin Core client ( bitcoin-qt ) and also downloaded the
binaries.

I face the following issues and hope you can help me to resolve these:

1) Can't open the configuration file from bitcoin-qt.
I have a configuration file $HOME/Library/Application
Support/Bitcoin/bitcoin.conf
but it's empty.
When I try to open it via bitcoin-qt ( Preferences -> Show configuration
file ) it shows me a popup with an error "Configuration file could not be
opened".
I tried to change the permissions: "chmod 600"...no luck...

2) I can launch bitcoind in -regtest regime.
But when I launch *bitcoin-cli -regtest setgenerate true 101*
error code: -32601
Method not found
3) If I try *bitcoin-cli getinfo*
error: Could not locate RPC credentials. No authentication cookie could be
found, and no rpcpassword is set in the configuration file
(/Users/..../Library/Application Support/Bitcoin/bitcoin.conf)
Hope you can help me!
Thanks

Best,
Bernd Jendrissek via bitcoin-dev
2018-02-09 20:10:25 UTC
Permalink
Raw Message
On 9 February 2018 at 12:55, Maksim Solovjov via bitcoin-dev
Post by Maksim Solovjov via bitcoin-dev
2) I can launch bitcoind in -regtest regime.
But when I launch bitcoin-cli -regtest setgenerate true 101
error code: -32601
Method not found
setgenerate was removed in 0.13.0. See doc/release-notes/release-notes-0.13.0.md
Post by Maksim Solovjov via bitcoin-dev
3) If I try bitcoin-cli getinfo
error: Could not locate RPC credentials. No authentication cookie could be
found, and no rpcpassword is set in the configuration file
(/Users/..../Library/Application Support/Bitcoin/bitcoin.conf)
getinfo is also deprecated or already removed. (Which version did you
install?) But even before that, you should probably heed the warning
and note that you don't seem to have a bitcoin.conf in a place where
bitcoin-cli can find it.

Loading...