mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-02 18:35:00 +01:00
doc: update FreeBSD installation instructions
Now that c-lightning is in the FreeBSD ports system (\o/) update the installation instructions, which basically boil down to just `pkg install c-lightning`. Changelog-None
This commit is contained in:
parent
8adbd4d31e
commit
3186215058
1 changed files with 19 additions and 22 deletions
|
@ -128,45 +128,42 @@ $ lightningd --network=testnet
|
||||||
```
|
```
|
||||||
|
|
||||||
To Build on FreeBSD
|
To Build on FreeBSD
|
||||||
---------------------
|
-------------------
|
||||||
|
|
||||||
OS version: FreeBSD 11.1-RELEASE or above
|
OS version: FreeBSD 11.1-RELEASE or above
|
||||||
|
|
||||||
Get dependencies:
|
c-lightning is in the FreeBSD ports, so install it as any other port
|
||||||
|
(dependencies are handled automatically):
|
||||||
|
|
||||||
# pkg install -y \
|
# pkg install c-lightning
|
||||||
autoconf automake bash gettext git gmp gmake libtool \
|
|
||||||
python python3 sqlite3 libsodium py36-mako py36-pip
|
|
||||||
# pip install mrkd
|
|
||||||
|
|
||||||
If you don't have Bitcoin installed locally you'll need to install that
|
for a binary, pre-compiled package. If you want to compile locally and
|
||||||
as well:
|
fiddle with compile time options:
|
||||||
|
|
||||||
# pkg install -y bitcoin-daemon bitcoin-utils
|
# cd /usr/ports/net-p2p/c-lightning && make install
|
||||||
|
|
||||||
Clone lightning:
|
mrkd is required to build man pages from markdown files (not done by the port):
|
||||||
|
|
||||||
$ git clone https://github.com/ElementsProject/lightning.git
|
# cd /usr/ports/devel/py-pip && make install
|
||||||
$ cd lightning
|
$ pip install --user mrkd
|
||||||
|
|
||||||
Build lightning:
|
See `/usr/ports/net-p2p/c-lightning/Makefile` for instructions on how to
|
||||||
|
build from an arbitrary git commit, instead of the latest release tag.
|
||||||
|
|
||||||
**Note**: Make sure you've set an utf-8 locale, e.g.
|
**Note**: Make sure you've set an utf-8 locale, e.g.
|
||||||
`export LC_CTYPE=en_US.UTF-8`, otherwise manpage installation may fail.
|
`export LC_CTYPE=en_US.UTF-8`, otherwise manpage installation may fail.
|
||||||
|
|
||||||
$ ./configure
|
|
||||||
$ gmake
|
|
||||||
$ gmake install
|
|
||||||
|
|
||||||
Running lightning:
|
Running lightning:
|
||||||
|
|
||||||
**Note**: Edit your `/usr/local/etc/bitcoin.conf` to include
|
Configure bitcoind, if not already: add `rpcuser=<foo>` and `rpcpassword=<bar>`
|
||||||
`rpcuser=<foo>` and `rpcpassword=<bar>` first, you may also need to
|
to `/usr/local/etc/bitcoin.conf`, maybe also `testnet=1`.
|
||||||
include `testnet=1`
|
|
||||||
|
Configure lightningd: copy `/usr/local/etc/lightningd-bitcoin.conf.sample` to
|
||||||
|
`/usr/local/etc/lightningd-bitcoin.conf` and edit according to your needs.
|
||||||
|
|
||||||
# service bitcoind start
|
# service bitcoind start
|
||||||
$ ./lightningd/lightningd &
|
# service lightningd start
|
||||||
$ ./cli/lightning-cli help
|
# lightning-cli --rpc-file /var/db/c-lightning/bitcoin/lightning-rpc --lightning-dir=/var/db/c-lightning help
|
||||||
|
|
||||||
To Build on NixOS
|
To Build on NixOS
|
||||||
--------------------
|
--------------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue