Closed ich777 closed 2 years ago
Just tried it here in a clean Ubuntu 22.04 container (because I couldn't get a Debian container with Go 1.18 easily).
My bash history is:
wget https://linuxcontainers.org/downloads/lxd/lxd-5.1.tar.gz
tar zxvf lxd-5.1.tar.gz
cd lxd-5.1
apt install acl attr autoconf automake dnsmasq-base git golang libacl1-dev libcap-dev liblxc1 liblxc-dev libsqlite3-dev libtool libudev-dev liblz4-dev libuv1-dev make pkg-config rsync squashfs-tools tar tcl xz-utils ebtables
make deps
export CGO_CFLAGS="-I/root/lxd-5.1/vendor/raft/include/ -I/root/lxd-5.1/vendor/dqlite/include/"
export CGO_LDFLAGS="-L/root/lxd-5.1/vendor/raft/.libs -L/root/lxd-5.1/vendor/dqlite/.libs/"
export LD_LIBRARY_PATH="/root/lxd-5.1/vendor/raft/.libs/:/root/lxd-5.1/vendor/dqlite/.libs/"
export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)"
make
And this gave me the expected LXD build successfully
.
Closing as there doesn't appear to be anything fundamentally wrong with that release tarball or instructions.
The kind of error you hit would be consistent with having something like GO111MODULE=off in the environment or something along those lines. Could you try on a perfectly clean system with Go 1.18?
Issue description
I'm trying to comple LXD from source and followed the directions from here but I've had no success so far.
Steps to reproduce
wget https://linuxcontainers.org/downloads/lxd/lxd-5.1.tar.gz
tar -xvf lxd-5.1.tar.gz
cd lxd-5.1
make deps
Output:
build deps
make
Output:
What am I missing?