<p>You can do</p>

<pre><code>sudo apt-get install -y software-properties-common
sudo add-apt-repository -u ppa:bitcoin/bitcoin
sudo add-apt-repository -u ppa:lightningnetwork/ppa
sudo apt-get install bitcoind lightningd
</code></pre>

<p>If you don't want to add external repositories you can flollow the clightning docs from <a href="https://github.com/ElementsProject/lightning/blob/master/doc/INSTALL.md" rel="nofollow noreferrer">https://github.com/ElementsProject/lightning/blob/master/doc/INSTALL.md</a> they worked perfectly last time I checked and are copied here for your convenience. </p>

<h2>Library Requirements</h2>

<p>You will need several development libraries:</p>

<ul>
<li>libsqlite3: for database support.</li>
<li>libgmp: for secp256k1</li>
<li>zlib: for compression routines.</li>
</ul>

<p>For actually doing development and running the tests, you will also need:</p>

<ul>
<li>pip3: to install python-bitcoinlib</li>
<li>valgrind: for extra debugging checks</li>
</ul>

<p>You will also need a version of bitcoind with segregated witness and <code>estimatesmartfee</code> economical node, such as the 0.16 or above.</p>

<h2>To Build on Ubuntu</h2>

<p>OS version: Ubuntu 15.10 or above</p>

<p>Get dependencies:</p>

<pre><code>sudo apt-get update
sudo apt-get install -y \
  autoconf automake build-essential git libtool libgmp-dev \
  libsqlite3-dev python python3 python3-mako net-tools zlib1g-dev libsodium-dev \
  git gettext
</code></pre>

<p>Clone lightning:</p>

<pre><code>git clone https://github.com/ElementsProject/lightning.git
cd lightning
</code></pre>

<p>For development or running tests, get additional dependencies:</p>

<pre><code>sudo apt-get install -y valgrind python3-pip libpq-dev
sudo pip3 install -r tests/requirements.txt -r doc/requirements.txt
</code></pre>

<p>Build lightning:</p>

<pre><code>./configure
make
sudo make install
</code></pre>

<p>Running lightning:</p>

<pre><code>bitcoind --datadir=&lt;path_to_blockchain&gt; &amp;&amp; ./lightningd/lightningd &amp;&amp; ./cli/lightning-cli help
</code></pre>

<p><strong>Note</strong>: You may need to include <code>testnet=1</code> in <code>bitcoin.conf</code></p>

CC BY-SA 4.0
2019-11-15T08:12:25.357Z
thak you @Rene Pickhardt. I have an issue early on: $ sudo add-apt-repository -u ppa:bitcoin/bitcoin
Usage: add-apt-repository [options] repository

add-apt-repository: error: no such option: -u
sugarman
CC BY-SA 4.0
2019-11-15T08:18:04.023Z
I removed "-u" option. Now I have another issue: sudo apt-get install bitcoind lightningd > "unable to locate package lightningd".
sugarman
CC BY-SA 4.0
2019-11-15T15:31:32.050Z
What happens if u do without adding external repositories to the package manager and step by step?
Rene Pickhardt
CC BY-SA 4.0
2019-11-15T17:08:19.950Z
it just works :-) with a few corrections, I edit your response if I may
sugarman
CC BY-SA 4.0
2019-11-15T23:59:16.057Z
Sure! That is what the site is about. We work collaboratively to bring the best information / education together
Rene Pickhardt
CC BY-SA 4.0
2019-11-15T07:45:07.730Z
2019-11-16T07:00:08.187Z
2019-11-16T07:00:08.187Z
Rene Pickhardt
<p>Hello fellow bitcoiners,</p>

<p>I would like to install lightning over Bitcoin core - I already have a full node. But every guide I follow ends up with a broken build or some issue preventing to finish the install of lightning. Did you have success with a good howto by any chance? I would preciate if someone could post a proven working install howto.</p>

<p>Thank you very much, /cr!?ptal</p>

CC BY-SA 4.0
2019-11-14T22:16:00.433Z
Which operating system do you use?
Rene Pickhardt
CC BY-SA 4.0
2019-11-14T23:35:50.393Z
linux ubuntu based
sugarman
<bitcoin-core><lightning-network>
lightning network bitcoin howto install
sugarman
# lightning network bitcoin howto install

(Asked by: username_0 on 2019-11-14)

Hello fellow bitcoiners,

I would like to install lightning over Bitcoin core - I already have a full node. But every guide I follow ends up with a broken build or some issue preventing to finish the install of lightning. Did you have success with a good howto by any chance? I would preciate if someone could post a proven working install howto.

Thank you very much, /cr!?ptal

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

> **Comments:**
> **username_1**: Which operating system do you use?  
> **username_0**: linux ubuntu based  

---

## 1 answers

### Answer by username_1 on 2019-11-15. Score: 2 | Accepted answer

You can do

```
sudo apt-get install -y software-properties-common
sudo add-apt-repository -u ppa:bitcoin/bitcoin
sudo add-apt-repository -u ppa:lightningnetwork/ppa
sudo apt-get install bitcoind lightningd

```

If you don't want to add external repositories you can flollow the clightning docs from <https://github.com/ElementsProject/lightning/blob/master/doc/INSTALL.md> they worked perfectly last time I checked and are copied here for your convenience.

## Library Requirements

You will need several development libraries:

* libsqlite3: for database support.
* libgmp: for secp256k1
* zlib: for compression routines.

For actually doing development and running the tests, you will also need:

* pip3: to install python-bitcoinlib
* valgrind: for extra debugging checks

You will also need a version of bitcoind with segregated witness and `estimatesmartfee` economical node, such as the 0.16 or above.

## To Build on Ubuntu

OS version: Ubuntu 15.10 or above

Get dependencies:

```
sudo apt-get update
sudo apt-get install -y \
  autoconf automake build-essential git libtool libgmp-dev \
  libsqlite3-dev python python3 python3-mako net-tools zlib1g-dev libsodium-dev \
  git gettext

```

Clone lightning:

```
git clone https://github.com/ElementsProject/lightning.git
cd lightning

```

For development or running tests, get additional dependencies:

```
sudo apt-get install -y valgrind python3-pip libpq-dev
sudo pip3 install -r tests/requirements.txt -r doc/requirements.txt

```

Build lightning:

```
./configure
make
sudo make install

```

Running lightning:

```
bitcoind --datadir=<path_to_blockchain> && ./lightningd/lightningd && ./cli/lightning-cli help

```

**Note**: You may need to include `testnet=1` in `bitcoin.conf`

> **Comments:**
> **username_0**: thak you @username_1. I have an issue early on: $ sudo add-apt-repository -u ppa:bitcoin/bitcoin Usage: add-apt-repository [options] repository  add-apt-repository: error: no such option: -u  
> **username_0**: I removed "-u" option. Now I have another issue: sudo apt-get install bitcoind lightningd > "unable to locate package lightningd".  
> **username_1**: What happens if u do without adding external repositories to the package manager and step by step?  
> **username_0**: it just works :-) with a few corrections, I edit your response if I may  
> **username_1**: Sure! That is what the site is about. We work collaboratively to bring the best information / education together  

---

