Post
Topic
Board Bitcoin Technical Support
Re: Questions RE: setting up Lightning Node on Raspberry Pi with Stadicus' guide
by
Zand_
on 16/01/2019, 00:02:36 UTC
That worked correctly this time so I continued to check the environment variables with input "go env" and noticed my output didn't match up with the guide

Some of the environment variables must be different in this case. Try the following commands

sudo mdkir ~/go
echo 'export GOPATH=$HOME/go' >> ~/.profile
echo 'PATH="$HOME/go/bin:$PATH"' >> ~/.profile

Log out, connect again to your machine and then run go env to see whether or not GOPATH has changed. If so, try the command from Zap connect.

Ok followed those steps and the GOPATH was successfully changed. I get the following environment config now

Code:
GOARCH="arm"
GOBIN=""
GOEXE=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/admin/go"
GORACE=""
GOROOT="/usr/lib/go-1.7"
GOTOOLDIR="/usr/lib/go-1.7/pkg/tool/linux_arm"
CC="gcc"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build354012546=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

I then proceeded to try and download Zap Connect but now get the following output

Code:
package github.com/LN-Zap/zapconnect: mkdir /home/admin/go/src: permission denied