[lxc-users] go install: no install location for directory /home/kxn2/Downloads/lxd-4.0.1/lxd outside GOPATH

Karl Nordstrom kxn2 at psu.edu
Sat May 9 20:55:36 UTC 2020


Hello,

I am trying to buld lxd from a release source.

[kxn2 at rhel8 lxd-4.0.1]$ pwd
/home/kxn2/Downloads/lxd-4.0.1

[kxn2 at rhel8 lxd-4.0.1]$ ls
AUTHORS         COPYING  fuidshift   lxd         lxd-p2c     po     
security.md
client         _dist      lxc          lxd-agent      Makefile 
  README.md  shared
contributing.md  doc      lxc-to-lxd  lxd-benchmark  mkdocs.yml 
scripts    test

[kxn2 at rhel8 lxd-4.0.1]$ echo $GOPATH
/home/kxn2/Downloads/lxd-4.0.1/_dist

[kxn2 at rhel8 lxd-4.0.1]$ make deps

# environment

Please set the following in your environment (possibly ~/.bashrc)
export CGO_CFLAGS="-I/home/kxn2/Downloads/lxd-4.0.1/_dist/deps/sqlite/ 
-I/home/kxn2/Downloads/lxd-4.0.1/_dist/deps/libco/ 
-I/home/kxn2/Downloads/lxd-4.0.1/_dist/deps/raft/include/ 
-I/home/kxn2/Downloads/lxd-4.0.1/_dist/deps/dqlite/include/"
export 
CGO_LDFLAGS="-L/home/kxn2/Downloads/lxd-4.0.1/_dist/deps/sqlite/.libs/ 
-L/home/kxn2/Downloads/lxd-4.0.1/_dist/deps/libco/ 
-L/home/kxn2/Downloads/lxd-4.0.1/_dist/deps/raft/.libs 
-L/home/kxn2/Downloads/lxd-4.0.1/_dist/deps/dqlite/.libs/"
export 
LD_LIBRARY_PATH="/home/kxn2/Downloads/lxd-4.0.1/_dist/deps/sqlite/.libs/:/home/kxn2/Downloads/lxd-4.0.1/_dist/deps/libco/:/home/kxn2/Downloads/lxd-4.0.1/_dist/deps/raft/.libs/:/home/kxn2/Downloads/lxd-4.0.1/_dist/deps/dqlite/.libs/"
export CGO_LDFLAGS_ALLOW="-Wl,-wrap,pthread_create"

added these export statements to ~/.bashrc

[kxn2 at rhel8 lxd-4.0.1]$ echo $GOPATH
/home/kxn2/Downloads/lxd-4.0.1/_dist

[kxn2 at rhel8 lxd-4.0.1]$ make
go get -t -v -d ./...
CC=cc go install -v -tags "libsqlite3"  ./...
go install: no install location for directory 
/home/kxn2/Downloads/lxd-4.0.1/fuidshift outside GOPATH
     For more details see: 'go help gopath'
go install: no install location for directory 
/home/kxn2/Downloads/lxd-4.0.1/lxc outside GOPATH
     For more details see: 'go help gopath'
go install: no install location for directory 
/home/kxn2/Downloads/lxd-4.0.1/lxc-to-lxd outside GOPATH
     For more details see: 'go help gopath'
go install: no install location for directory 
/home/kxn2/Downloads/lxd-4.0.1/lxd outside GOPATH
     For more details see: 'go help gopath'
go install: no install location for directory 
/home/kxn2/Downloads/lxd-4.0.1/lxd-agent outside GOPATH
     For more details see: 'go help gopath'
go install: no install location for directory 
/home/kxn2/Downloads/lxd-4.0.1/lxd-benchmark outside GOPATH
     For more details see: 'go help gopath'
go install: no install location for directory 
/home/kxn2/Downloads/lxd-4.0.1/lxd-p2c outside GOPATH
     For more details see: 'go help gopath'
go install: no install location for directory 
/home/kxn2/Downloads/lxd-4.0.1/shared/generate outside GOPATH
     For more details see: 'go help gopath'
go install: no install location for directory 
/home/kxn2/Downloads/lxd-4.0.1/test/deps outside GOPATH
     For more details see: 'go help gopath'
go install: no install location for directory 
/home/kxn2/Downloads/lxd-4.0.1/test/macaroon-identity outside GOPATH
     For more details see: 'go help gopath'
make: *** [Makefile:20: default] Error 1

These directories have go files (/home/kxn2/Downloads/lxd-4.0.1/lxd).

Any suggestions on getting these to compile?

-- 
Karl Nordstrom
<"begin pgp signed message" to disable safelinks/>



More information about the lxc-users mailing list