Closed lzl124631x closed 5 years ago
@lzl124631x can you post your GOPATH and current directory? go env
and pwd
@totaloutput Thanks.
Richards-MacBook-Pro:btcd ricl$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/ricl/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/ricl/GoPath"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/th/vrgvr11j10d2sds7kw_z6tn00000gn/T/go-build471543907=/tmp/go-build -gno-record-gcc-switches -fno-common"
Richards-MacBook-Pro:btcd ricl$ pwd
/Users/ricl/GoPath/src/github.com/lzl124631x/btcd
The original btcd
is at
/Users/ricl/GoPath/src/github.com/btcsuite/btcd
@lzl124631x can you try run glide install
and go install . ./cmd/...
under /Users/ricl/GoPath/src/github.com/btcsuite/btcd
Tried. Everything looks fine. The btcd
executable is generated in /Users/ricl/GoPath/bin
.
Then I tried glide install
/ go install . ./cmd/...
again in /Users/ricl/GoPath/src/github.com/lzl124631x/btcd
. Same issue as I mentioned before.
I figured out. I need to change the first line of glide.yaml
to package: github.com/lzl124631x/btcd
. Then everything works now!
Thanks @totaloutput
@totaloutput BTW, is there any chance that you can help look at this issue https://github.com/btcsuite/btcd/issues/1334?
Note that I can run this original
btcd
project. However, I can't build my forked repo which is identical to this repo.I first tried
go get ./...
, but:Then I tried to follow the README.
glide install
. It succeeded but with a warning.go install . ./cmd/...
but got these errors.