Last active
June 20, 2021 23:27
-
-
Save bensig/1556da5e6782437c056f2c724e1716b3 to your computer and use it in GitHub Desktop.
Installing LND like a boss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install go | |
sudo snap install --classic go | |
# Create a 'go' directory in your home directory: | |
mkdir ~/go | |
# set GO PATH and PATH | |
echo "export GOPATH=$HOME/go" >> .bashrc | |
echo "export PATH=$PATH:$GOROOT/bin:$GOPATH/bin" >> .bashrc | |
source .bashrc | |
# lnd is now using dep to manage dependancies, and dep has some additional requirements for development tools, so make sure you have the build-essential package installed: | |
sudo apt-get install build-essential | |
sudo apt-get install git-core | |
# install go deps | |
go get -u github.com/golang/dep/cmd/dep | |
# clone and install lnd | |
cd ~/go | |
git clone https://github.com/lightningnetwork/lnd | |
cd lnd | |
make install | |
# finish up | |
echo "LND is now installed and you should be able to run 'lnd' - next you will need to configure and set the backend - lots of good info is here: https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md#installing-lnd-from-source" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment