ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.81k stars 887 forks source link

Installation instructions for Arch Linux #1635

Open fluidvoice opened 6 years ago

fluidvoice commented 6 years ago

[edit] working. See my instructions below. Given that Arch based Manjaro is now the most popular Linux distro (Distrowatch.com) I think build and install instructions for Arch (pacman package manager) should be added to the docs.

cdecker commented 6 years ago

Absolutely! I don't have any experience with either distros, but I'd definitely review the docs if you were to write them up :+1:

fluidvoice commented 6 years ago

@cdecker, here ya go. I did a fresh install on a Oracle VirtualBox VM and these steps worked...

Download and install Manjaro XFCE 17.1.10

https://manjaro.org/get-manjaro/

skipped optional system update (~600MB):

sudo pacman -Syyu

Get dependencies:

sudo pacman -S autoconf automake git libtool gmp sqlite python net-tools zlib gcc make

Install Bitcoin:

wget https://bitcoin.org/bin/bitcoin-core-0.16.1/bitcoin-0.16.1-x86_64-linux-gnu.tar.gz tar -xvf bitcoin-0.16.1-x86_64-linux-gnu.tar

run and/or sync the Bitcoin daemon on testnet or mainnet

bitcoin-0.16.1/bin/bitcoind -testnet -printtoconsole

get additional test/dev dependencies:

sudo pacman -S asciidoc valgrind python-pip

clone lightning:

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

get other python requirements

sudo pip3 install -r tests/requirements.txt

Build lightning; (the configure step showed a segfault error but make succeeded anyway)

./configure make

Run lightning:

./lightningd/lightningd --testnet ./cli/lightning-cli help