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