From feb734086b9d890883baac542023d8416975ce19 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Mon, 22 Jan 2018 11:31:56 -0800 Subject: [PATCH] build: Update INSTALL.md to include FreeBSD. --- doc/INSTALL.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/doc/INSTALL.md b/doc/INSTALL.md index ee674c7c7..c09a4ac79 100644 --- a/doc/INSTALL.md +++ b/doc/INSTALL.md @@ -53,3 +53,36 @@ bitcoind & ``` **Note**: You may need to include `testnet=1` in `bitcoin.conf` +To Build on FreeBSD 11.1-RELEASE +--------------------- + +Get dependencies: +``` +# pkg install -y autoconf automake git gmake libtool python python3 sqlite3 +``` + +If you don't have Bitcoin installed locally you'll need to install that as well: +``` +# pkg install -y bitcoin-daemon bitcoin-utils +``` + +Clone lightning: +``` +$ git clone https://github.com/ElementsProject/lightning.git +$ cd lightning +``` + +Build lightning: +``` +$ gmake +``` + +Running lightning: + +**Note**: Edit your `/usr/local/etc/bitcoin.conf` to include `rpcuser=` and `rpcpassword=` first, you may also need to include `testnet=1` + +``` +# service bitcoind start +$ ./lightningd/lightningd & +$ ./cli/lightning-cli help +```