Get Error when Using 'MAKE' on Rasp PI

Anyone have any suggestions?

Pretty sure I followed all the steps correctly, and got no errors up to this point.

Thanks

nknd.go:36:2: cannot find package “github.com/urfave/cli” in any of:
/home/pi/go/src/github.com/nknorg/nkn/vendor/github.com/urfave/cli (vendor tree)
/usr/local/go/src/github.com/urfave/cli (from $GOROOT)
/home/pi/go/src/github.com/urfave/cli (from $GOPATH)
Makefile:39: recipe for target ‘build_local’ failed
make: *** [build_local] Error 1

1 Like

Retraced all my steps and ensured I installed everything correctly…
This is Error I now get when trying to Build Code Base…

[email protected]:~/go/src/github.com/nknorg/nkn $ make
go build -ldflags “-s -w -X github.com/nknorg/nkn/util/config.Version=v0.8.2-alpha-1-g92f9” nknd.go

crypto/rc4

/usr/local/go/src/crypto/rc4/rc4_asm.go:13:18: (*Cipher).XORKeyStream redeclared in this block
previous declaration at /usr/local/go/src/crypto/rc4/rc4.go:61:6

runtime

/usr/local/go/src/runtime/map.go:65:2: bucketCntBits redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:64:18
/usr/local/go/src/runtime/map.go:66:2: bucketCnt redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:65:23
/usr/local/go/src/runtime/map.go:77:2: maxKeySize redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:74:17
/usr/local/go/src/runtime/map.go:78:2: maxValueSize redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:75:17
/usr/local/go/src/runtime/map.go:83:2: dataOffset redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:83:4
/usr/local/go/src/runtime/map.go:94:2: evacuatedX redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:91:19
/usr/local/go/src/runtime/map.go:95:2: evacuatedY redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:92:19
/usr/local/go/src/runtime/map.go:96:2: evacuatedEmpty redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:90:19
/usr/local/go/src/runtime/map.go:97:2: minTopHash redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:93:19
/usr/local/go/src/runtime/map.go:100:2: iterator redeclared in this block
previous declaration at /usr/local/go/src/runtime/hashmap.go:96:17
/usr/local/go/src/runtime/map.go:100:2: too many errors
Makefile:39: recipe for target ‘build_local’ failed
make: *** [build_local] Error 2

1 Like

What are your $GOROOT & $GOPATH setting? /usr/local/go and /home/pi/go?
And where is your vendor tree? /home/pi/go/src/github.com/nknorg/nkn/vendor?
What is your go version cmd output?

BTW, how about try make build_local?

$ make help
help Show available options with this Makefile
all Build binaries for all available architectures
build_local Build local binaries without providing specific GOOS/GOARCH
format Run go format on nknd.go
glide Installs glide for go package management
test Run go test
clean Remove the nknd, nknc binaries and build directory
deepclean Remove the existing binaries, the vendor directory and build directory

1 Like