Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
I tried installing lnd using the commands shown in the installation guide. I used these commands:
git clone https://github.com/lightningnetwork/lnd cd lnd make install
but when I try running the lnd command, I get this:
Command 'lnd' not found
I have go1.18.1 installed. I did execute these commands, but nothing changed:
export GOPATH=~/go export PATH=$PATH:$GOPATH/bin
Here are the $GOPATH
and $PATH
variables:
echo $GOPATH /usr/local/go
echo $PATH /home/ayoub/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ayoub/.dotnet/tools:/usr/local/go/bin:/usr/local/go/bin
How can I solve this issue? I am running Ubuntu 20.04.
edit: Here is the output of sudo make install
:
go install -v -tags="" -ldflags " -s -w -X github.com/lightningnetwork/lnd/build.Commit=v0.14.3-beta -X github.com/lightningnetwork/lnd/build.CommitHash=bd0c46b4fcb027af1915bd67a3da70e8ca5c6efe -X github.com/lightningnetwork/lnd/build.GoVersion=go1.18.1 -X github.com/lightningnetwork/lnd/build.RawTags=" github.com/lightningnetwork/lnd/cmd/lnd
Since /usr/local/go/bin
is in your path, that is probably where you should have go
install the programs it compiles. However it isn't clear how you have go
set up. Normally the go language tools would be kept separate from the go programs you compile and install.
Nevertheless, if the make
command didn't emit error messages, go has compiled lnd and installed it somewhere (usually based on whatever value you had assigned to $GOPATH at that time).
I would find lnd using the following commands ...
find /home/ayoub -name lnd find /usr/local -name lnd
and then mv
it to /usr/local/go/bin/lnd
I would also check ownership and permissions.
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments