lnd icon indicating copy to clipboard operation
lnd copied to clipboard

Install fails at step go install . ./cmd/...

Open xorq opened this issue 8 years ago • 26 comments

I tried many different sytems, osx, aws ubuntu instance, and always get this, following https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md

at step:

go install . ./cmd/...

output :

screen shot 2018-02-12 at 15 34 32

xorq avatar Feb 12 '18 09:02 xorq

I'm getting the same error on my machines too.

davidapple avatar Feb 12 '18 10:02 davidapple

  1. What are your GOROOT and GOPATH set to?
  2. Did you run glide install while in the lnd folder?

dabura667 avatar Feb 12 '18 10:02 dabura667

also, what does go version say?

dabura667 avatar Feb 12 '18 10:02 dabura667

GOROOT isn't set, not surprising since there is nothing in the installation instruction that sets GOROOT to anything, right ?

I strictly followed the instructions so I did as in the user manual :

cd $GOPATH/src/github.com/lightningnetwork/lnd glide install so yea it is ran from the lnd folder ...

go version says : go1.9.4 darwin/amd64

xorq avatar Feb 12 '18 12:02 xorq

Also, what does

git rev-parse HEAD

say when performed in the lnd directory?

dabura667 avatar Feb 12 '18 13:02 dabura667

65d6d77ef409741c7ad8562cb9781dd5894a5117

xorq avatar Feb 12 '18 14:02 xorq

When you strictly follow the steps in https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md can't you reproduce this error ? I get it on every single machine including brand new installs and I simply follow line by line everything in the install.md file

xorq avatar Feb 12 '18 14:02 xorq

Looks like you either don't have your GOPATH set up properly, or didn't do glide install. I'd also check that your GOPATH and GOROOT aren't over lapping.

Roasbeef avatar Feb 12 '18 21:02 Roasbeef

Hi, I did : export GOPATH=~/gocode export PATH=$PATH:$GOPATH/bin as instructed... of course I did glide install everytime, I followed the instructions numerous times, I believe there is a problem with the INSTALL.md document. GOROOT isn't set up to anything since there is no instruction about setting up GOROOT. How to set GOPATH and GOROOT properly ?

by the way now glide install has an issue :

screen shot 2018-02-13 at 11 16 57

Thanks

xorq avatar Feb 13 '18 04:02 xorq

@xorq I have got the same issue. Just like you I followed the instruction steps to the letter. No mention of GOROOT there.

satoshi-ninja avatar Feb 13 '18 09:02 satoshi-ninja

If there are any LN geniuses that have managed to get this working. Can you please improve the INSTALL.md file to bring down the barriers to entry. Otherwise most people are simply not going to be able to get this working and not bother asking for help.

davidapple avatar Feb 13 '18 10:02 davidapple

I literally followed the guide in a fresh VM with Ubuntu stock and everything is working fine with the commit posted, as well as current master.

I would try MacOS in a VM, but Tim Cook hates me.

dabura667 avatar Feb 13 '18 14:02 dabura667

@dabura667 which Ubuntu version have you used for your VM? I'm on 16.04.3 LTS (without success).

satoshi-ninja avatar Feb 13 '18 16:02 satoshi-ninja

What version of glide are y'all using?

Roasbeef avatar Feb 13 '18 20:02 Roasbeef

It seems only a very narrow set of users have this issue, and it's typically related to a dated version of glide.

Roasbeef avatar Feb 13 '18 20:02 Roasbeef

Tried to reproduce this o a fresh machine as well, but it works w/o issue.

Roasbeef avatar Feb 13 '18 20:02 Roasbeef

Fine for me on ubuntu16.04 (not a VM), tried a few days ago. (glide 0.13.2-dev). By the way my go path is ~/go not ~/gocode I created a .go_profile file with this in

GOPATH="$(go env GOPATH)"
PATH=$PATH:$GOPATH/bin

so instead of typing out export ... each time i open a new bash window i do source .go_profile

cavapoo2 avatar Feb 13 '18 23:02 cavapoo2

YES ! Guys ! following step by step never works but I just tried leaving the go path to ~/go and it works on ubuntu... So maybe update the INSTALL.md file without the line changing the go path to ~/gocode ? Could everyone who made it work confirm that they didn't set ~/gocode as go path ?

Also to make it work I installed glide from https://glide.sh/ (v0.13.1) (not from go get -u github.com/Masterminds/glide which installs a dev version)

(on OSX I always get the message I sent above ... ([WARN] Download failed.)) Looks like glide is blocked from accessing internet to check for updates (?)

xorq avatar Feb 14 '18 03:02 xorq

@xorq In my experience, this usually means there's an issue with your git setup, as glide/go get uses git internally. Could you try to do go get manually on the failing repos, and also git clone?

halseth avatar Feb 15 '18 08:02 halseth

I put together instructions on how to setup LND from scratch and tested them step-by-step on multiple systems (Ununtu, Debina, and Trisquel).

Go path is covered with more precision then the official LND instructions: https://github.com/alevchuk/pstm/tree/master/lnd-e2e-testing#build-go

alevchuk avatar Feb 24 '18 04:02 alevchuk