<p>It is complaining about not being able to find the <code>bitcoin-cli</code> binary of the Bitcoin Core installation (which is normal since you are running it from a location that is not on the <code>$PATH</code> hence it can't find it).</p>

<p>To fix this issue you can tell <code>lightningd</code> explicitly which binary to use as <code>bitcoin-cli</code> by doing this:</p>



<pre><code>./clightning-v0.7.2.1/bin/lightningd \
      --bitcoin-cli=$(pwd)/bitcoin-0.18.0/bin/bitcoin-cli \
      --lightning-dir=/media/vincenzo/Maxtor/C-lightning/node/ \
      --network=testnet \
      --log-level=debug
</code></pre>

<p>This will tell <code>lightningd</code> to use the <code>bitcoin-cli</code> located at <code>$(pwd)/bitcoin-0.18.0/bin/bitcoin-cli</code>. The <code>$(pwd)</code> is there to make the path absolute since <code>lightningd</code> will change directory internally after starting, so that relative paths might not match anymore.</p>

CC BY-SA 4.0
2019-08-22T16:39:38.790Z
2019-08-22T16:39:38.790Z
cdecker
<p>I have a bitcoin-core-18.0 with on my linux mint, and I don't have downloaded the bitcoin with the ppa but I downloaded the official zip directory on site bitcoin.</p>

<p>Now my question is, c-lightning with this configuration bitcoin-core?</p>

<p>I'm running this command and I have this error</p>

<pre><code>./bitcoin-0.18.0/bin/bitcoind -datadir=/media/vincenzo/Maxtor/BitcoinCore/node/ -daemon -testnet &amp; 
./clightning-v0.7.2.1/bin/lightningd --lightning-dir=/media/vincenzo/Maxtor/C-lightning/node/ --network=testnet --log-level=debug
</code></pre>

<p>The error</p>

<pre><code>2019-08-22T13:00:06.878Z DEBUG lightning_gossipd(9943): pid 9943, msgfd 20
bitcoin-cli not found. Is bitcoin-cli (part of Bitcoin Core) available in your PATH?

Make sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind.

You can verify that your Bitcoin Core installation is ready for use by running:

    $ bitcoin-cli -testnet echo 'hello world'
</code></pre>

<p>Exist some propriety configuration c-lightning?</p>

CC BY-SA 4.0
2019-08-22T13:12:24.700Z
Do you have a fully synced bitcoin testnet node (since you are using testnet)?
Ugam Kamat
CC BY-SA 4.0
2019-08-22T13:21:53.497Z
hi @UgamKamat, yes, I have the same error also with the mainet
vincenzopalazzo
<bitcoin-core><core-lightning>
How run c-lightning with the local node bitcoin
vincenzopalazzo
# How run c-lightning with the local node bitcoin

(Asked by: username_0 on 2019-08-22)

I have a bitcoin-core-18.0 with on my linux mint, and I don't have downloaded the bitcoin with the ppa but I downloaded the official zip directory on site bitcoin.

Now my question is, c-lightning with this configuration bitcoin-core?

I'm running this command and I have this error

```
./bitcoin-0.18.0/bin/bitcoind -datadir=/media/vincenzo/Maxtor/BitcoinCore/node/ -daemon -testnet & 
./clightning-v0.7.2.1/bin/lightningd --lightning-dir=/media/vincenzo/Maxtor/C-lightning/node/ --network=testnet --log-level=debug

```

The error

```
2019-08-22T13:00:06.878Z DEBUG lightning_gossipd(9943): pid 9943, msgfd 20
bitcoin-cli not found. Is bitcoin-cli (part of Bitcoin Core) available in your PATH?

Make sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind.

You can verify that your Bitcoin Core installation is ready for use by running:

    $ bitcoin-cli -testnet echo 'hello world'

```

Exist some propriety configuration c-lightning?

**Tags:** bitcoin-core, core-lightning

> **Comments:**
> **username_1**: Do you have a fully synced bitcoin testnet node (since you are using testnet)?  
> **username_0**: hi @username_1, yes, I have the same error also with the mainet  

---

## 1 answers

### Answer by username_2 on 2019-08-22. Score: 3 | Accepted answer

It is complaining about not being able to find the `bitcoin-cli` binary of the Bitcoin Core installation (which is normal since you are running it from a location that is not on the `$PATH` hence it can't find it).

To fix this issue you can tell `lightningd` explicitly which binary to use as `bitcoin-cli` by doing this:

```
./clightning-v0.7.2.1/bin/lightningd \
      --bitcoin-cli=$(pwd)/bitcoin-0.18.0/bin/bitcoin-cli \
      --lightning-dir=/media/vincenzo/Maxtor/C-lightning/node/ \
      --network=testnet \
      --log-level=debug

```

This will tell `lightningd` to use the `bitcoin-cli` located at `$(pwd)/bitcoin-0.18.0/bin/bitcoin-cli`. The `$(pwd)` is there to make the path absolute since `lightningd` will change directory internally after starting, so that relative paths might not match anymore.


---

