Post
Topic
Board Bitcoin Technical Support
Re: Questions RE: setting up Lightning Node on Raspberry Pi with Stadicus' guide
by
Zand_
on 17/01/2019, 01:03:24 UTC
I am afraid that the package (golang) is a bit out-of-date (it's a common thing, unfortunately). Can you tell me which version of Go is currently installed? (go version) If it's lower than 1.11.1 then we will have to proceed with the manual installation again. Try the following commands anyway.

sudo apt-get remove golang* - '*' is necessary
sudo apt-get autoremove
sudo rm -r /usr/local/go - just in case you accidentally moved the old version

Now, after typing in go version you should see 'Unknown command error'.

cd /usr/local/ && sudo wget https://dl.google.com/go/go1.11.4.linux-armv6l.tar.gz - not the 32 bit version as I recommended earlier but the ARM one
sudo tar -xvf go1.11.4.linux-armv6l.tar.gz
sudo rm go1.11.4.linux-armv6l.tar.gz - let's keep things clean

The $GOPATH should not change but let's make sure that it will work properly. Don't forget to log out after using the commands below.

export GOROOT=/usr/local/go
echo 'export GOPATH=$HOME/go' >> ~/.profile
echo 'PATH="$HOME/go/bin:$PATH"' >> ~/.profile

Run go version and you should see go version g1.11.4 linux/arm. Run the command from Zap connect.

I don't want to hold you up from sleep so maybe take a look in the morning when you wake up. Also sent a long overdue BTC tip your way (to the address in your profile) for all the help you've provided.

I fell asleep immediately after making my previous post. Thank you for your generous tip! Now I am considering buying a Raspberry Pi for myself Wink

Ok I gave this a try but after doing everything I ended up with the "-bash: go: command not found" output when checking the go version.

By the way, when I installed go the first time around with "sudo apt-get install golang" I got go version go1.7.4 linux/arm. Not sure if that helps