<p>Debian is the basis for the Ubuntu distribution, as such following the Ubuntu documentation will work for Debian systems too.</p>
<p>That aside, the error you mention indicates that one of the <code>git</code> submodules was not initialized after checkout.</p>
<p>You can initialize and sync all submodules with the following command anywhere in the repository:</p>
<pre><code>git submodule update --init --recursive
</code></pre>
<p>Then follow the usual instructions.</p>

CC BY-SA 4.0
2023-12-17T13:07:04.420Z
2023-12-17T13:07:04.420Z
cdecker
<p>Is there a way to build or run CLN on Debian 11? The docs/INSTALL.md file lists several operating systems, but none of them is Debian.</p>
<p>I tried following the directions for Ubuntu, but that resulted in the following error:</p>
<pre><code>cd external/libwally-core &amp;&amp; ./tools/autogen.sh
/bin/sh: 1: ./tools/autogen.sh: not found
make: *** [external/Makefile:83: external/x86_64-linux-gnu/libwally-core-build/src/libwallycore.la] Error 127
</code></pre>
<p>A docker image would probably work in my case too, or any pre-compiled version that was linked with all necessary libraries. Do such builds exist for CLN? If so, where can I find them?</p>
<p>Ultimately, I need to restore a CLN node and wallet that used to be running on a system that has had a hardware failure. CLN was shutdown normally before the hardware failure, so it should work, but the only system I will have available in the near future is running Debian 11.</p>

<core-lightning><compiling>
Building/Running CLN on Debian 11
Zephyrus
# Building/Running CLN on Debian 11

(Asked by: username_0 on 2023-12-16)

Is there a way to build or run CLN on Debian 11? The docs/INSTALL.md file lists several operating systems, but none of them is Debian.

I tried following the directions for Ubuntu, but that resulted in the following error:

```
cd external/libwally-core && ./tools/autogen.sh
/bin/sh: 1: ./tools/autogen.sh: not found
make: *** [external/Makefile:83: external/x86_64-linux-gnu/libwally-core-build/src/libwallycore.la] Error 127

```

A docker image would probably work in my case too, or any pre-compiled version that was linked with all necessary libraries. Do such builds exist for CLN? If so, where can I find them?

Ultimately, I need to restore a CLN node and wallet that used to be running on a system that has had a hardware failure. CLN was shutdown normally before the hardware failure, so it should work, but the only system I will have available in the near future is running Debian 11.

**Tags:** core-lightning, compiling


---

## 1 answers

### Answer by username_1 on 2023-12-17. Score: 2 | Accepted answer

Debian is the basis for the Ubuntu distribution, as such following the Ubuntu documentation will work for Debian systems too.

That aside, the error you mention indicates that one of the `git` submodules was not initialized after checkout.

You can initialize and sync all submodules with the following command anywhere in the repository:

```
git submodule update --init --recursive

```

Then follow the usual instructions.


---

