2016-03-16 16:06:17 +10:30
|
|
|
Library Requirements
|
|
|
|
--------------------
|
2016-02-24 23:55:00 -05:00
|
|
|
|
2016-03-16 16:06:17 +10:30
|
|
|
You will need several development libraries:
|
|
|
|
* libprotoc: the Google protocol buffer v2 library, 2.6.0 or above.
|
|
|
|
* protobuf-c: version 1.1.0 or above.
|
2016-08-18 14:25:13 +09:30
|
|
|
* libsqlite3: for database support.
|
2016-08-19 11:05:32 +09:30
|
|
|
* libgmp: for secp256k1
|
2016-10-17 12:14:34 +10:30
|
|
|
* asciidoc: for formatting the man page (if you change them)
|
2016-03-16 16:06:17 +10:30
|
|
|
|
2016-08-09 13:05:31 +09:30
|
|
|
You will also need a version of bitcoind with segregated witness support,
|
|
|
|
such as the 0.13 or above.
|
2016-05-26 15:25:24 +09:30
|
|
|
|
2016-08-12 21:09:32 -04:00
|
|
|
To Build on Ubuntu 16.04
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
Get dependencies:
|
|
|
|
```
|
2017-01-11 09:42:26 +10:30
|
|
|
sudo apt-get install autoconf libtool libprotobuf-c-dev libsqlite3-dev libgmp-dev libsqlite3-dev asciidoc
|
2016-08-12 21:09:32 -04:00
|
|
|
```
|
|
|
|
|
2017-01-11 09:42:26 +10:30
|
|
|
Clone lightning:
|
2016-08-12 21:09:32 -04:00
|
|
|
```
|
|
|
|
git clone https://github.com/ElementsProject/lightning.git
|
|
|
|
cd lightning
|
|
|
|
```
|
|
|
|
|
|
|
|
Build lightning:
|
|
|
|
```
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
|
|
|
Running lightning:
|
|
|
|
```
|
|
|
|
bitcoind
|
|
|
|
./daemon/lightningd
|
|
|
|
./daemon/lightning-cli help
|
|
|
|
```
|
|
|
|
**Note**: You may need to include `testnet=1` in `bitcoin.conf`
|
|
|
|
|
|
|
|
To Build on Ubuntu 15.10
|
2016-03-16 16:06:17 +10:30
|
|
|
------------------------
|
2016-02-24 23:55:00 -05:00
|
|
|
Build protobuf-c dependency (>= 1.1.0):
|
|
|
|
```
|
|
|
|
sudo apt-get install libprotoc-dev
|
|
|
|
git clone https://github.com/protobuf-c/protobuf-c.git
|
|
|
|
cd protobuf-c
|
|
|
|
./autogen.sh
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
cd ../
|
|
|
|
```
|
|
|
|
|
2017-01-11 09:42:26 +10:30
|
|
|
Clone lightning:
|
2016-02-24 23:55:00 -05:00
|
|
|
```
|
|
|
|
git clone https://github.com/ElementsProject/lightning.git
|
|
|
|
cd lighting
|
|
|
|
```
|
|
|
|
|
|
|
|
Build lightning:
|
|
|
|
```
|
|
|
|
make
|
2016-08-12 21:09:32 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
Running lightning:
|
|
|
|
```
|
|
|
|
bitcoind
|
2016-02-24 23:55:00 -05:00
|
|
|
export LD_LIBRARY_PATH=/usr/local/lib
|
|
|
|
./daemon/lightningd
|
2016-08-12 21:09:32 -04:00
|
|
|
./daemon/lightning-cli help
|
2016-02-24 23:55:00 -05:00
|
|
|
```
|