[bug]: build lnd 0.18.4 failure: package slices is not in GOROOT #9327
Replies: 3 comments 1 reply
-
realized i had go 1.18 but "lnd is written in Go, with a minimum version of 1.19" |
Beta Was this translation helpful? Give feedback.
-
Actually I'm getting the same on go1.19.13 |
Beta Was this translation helpful? Give feedback.
-
seems like your golang installation is not correct. try to compile a simple golang program and see whether this works. GOROOT needs to point to the directory where the golang implementation lies. Normally this is set automatically and is normally |
Beta Was this translation helpful? Give feedback.
-
Background
I'm following Building a development version from source, yet I got two errors. I was able to fix the first one, but got stuck on the second.
First error:
I overcame it by editing go.mod and replacing '1.21.4' with '1.21'
Second error:
Your environment
lnd
: d72a3aa tag: v0.18.3-betago
: 619b8fd7d2c94af12933f409e962b99aa9263555 tag: go1.19.13Linux 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
My paths are setup like this:
Steps to reproduce
Beta Was this translation helpful? Give feedback.
All reactions