Hello,
I have been trying to build LXD 3.18 from source on Centos 8 and make dep
works fine, later make
fails.Also, the error below came up after I solved this issue .(by entering _dist/src/github.com/lxc/lxd
and then running make
)
This is the error I get now:
Please set the following in your environment (possibly ~/.bashrc)
export CGO_CFLAGS="-I/home/alpha/lxd-3.18/_dist/deps/sqlite/ -I/home/alpha/lxd-3.18/_dist/deps/libco/ -I/home/alpha/lxd-3.18/_dist/deps/raft/include/ -I/home/alpha/lxd-3.18/_dist/deps/dqlite/include/"
export CGO_LDFLAGS="-L/home/alpha/lxd-3.18/_dist/deps/sqlite/.libs/ -L/home/alpha/lxd-3.18/_dist/deps/libco/ -L/home/alpha/lxd-3.18/_dist/deps/raft/.libs -L/home/alpha/lxd-3.18/_dist/deps/dqlite/.libs/"
export LD_LIBRARY_PATH="/home/alpha/lxd-3.18/_dist/deps/sqlite/.libs/:/home/alpha/lxd-3.18/_dist/deps/libco/:/home/alpha/lxd-3.18/_dist/deps/raft/.libs/:/home/alpha/lxd-3.18/_dist/deps/dqlite/.libs/"
$ make
go get -t -v -d ./...
CC=cc go install -v -tags "libsqlite3" ./...
github.com/lxc/lxd/shared/idmap
# github.com/lxc/lxd/shared/idmap
shared/idmap/shift_linux.go:28:10: fatal error: sys/capability.h: No such file or directory
#include <sys/capability.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:19: default] Error 2
Any help?
(I have the libpcap-devel
installed)
I am okay with installing a newer version (in 3.X.X) if such issues are fixed later. I have been following the install from source guide given here.
~