<p>You are missing the postgresql client libraries. If you are on Ubuntu you should be able to install the library using this:</p>
<pre class="lang-bash prettyprint-override"><code>sudo apt-get install libpq5
</code></pre>
<p>Then try running <code>lightningd</code> again.</p>

CC BY-SA 4.0
2024-12-29T13:18:30.910Z
2024-12-29T13:18:30.910Z
cdecker
<p>I'm trying to run core lightning by following the installation guide provided at <a href="https://docs.corelightning.org/docs/installation" rel="nofollow noreferrer">corelightning.org.</a> I have taken the binaries option. When I enter <code>sudo tar -xvf &lt;release&gt;.tar.xz -C /usr/local --strip-components=2 </code>and try to launch clighting by entering <code>lightningd</code> I get the following error message:</p>
<p><a href="https://i.sstatic.net/eVtVRYvI.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/eVtVRYvI.png" alt="enter image description here" /></a></p>
<p>I have googled this library and nothing much comes up. What do I need to do about this error message?</p>

<core-lightning><libpq.so.5>
Error message while trying to install core lightning
Eoin
# Error message while trying to install core lightning

(Asked by: username_0 on 2024-12-29)

I'm trying to run core lightning by following the installation guide provided at [corelightning.org.](https://docs.corelightning.org/docs/installation) I have taken the binaries option. When I enter `sudo tar -xvf <release>.tar.xz -C /usr/local --strip-components=2` and try to launch clighting by entering `lightningd` I get the following error message:

[![enter image description here](https://i.sstatic.net/eVtVRYvI.png)](https://i.sstatic.net/eVtVRYvI.png)

I have googled this library and nothing much comes up. What do I need to do about this error message?

**Tags:** core-lightning, libpq.so.5


---

## 1 answers

### Answer by username_1 on 2024-12-29. Score: 2 | Accepted answer

You are missing the postgresql client libraries. If you are on Ubuntu you should be able to install the library using this:

```bash
sudo apt-get install libpq5

```

Then try running `lightningd` again.


---

