[lxc-devel] [lxd/master] Update build instruction

garywill on Github lxc-bot at linuxcontainers.org
Mon Oct 29 02:34:53 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 398 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20181029/00bbe7d4/attachment.bin>
-------------- next part --------------
From fb53a5fed8eaac3ea673529f4f2911797996afe8 Mon Sep 17 00:00:00 2001
From: Gary Williams <acadsear at yahoo.com>
Date: Mon, 29 Oct 2018 10:32:54 +0800
Subject: [PATCH] Update build instruction

---
 doc/index.md | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/doc/index.md b/doc/index.md
index d63cac740e..ee89f5b24d 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -28,7 +28,7 @@ Instructions on installing LXD for a wide variety of Linux distributions and ope
 
 ## Installing LXD from source
 We recommend having the latest versions of liblxc (>= 2.0.0 required)
-available for LXD development. Additionally, LXD requires Golang 1.9 or
+available for LXD development. Additionally, LXD requires Golang 1.10 or
 later to work. On ubuntu, you can get those with:
 
 ```bash
@@ -76,6 +76,9 @@ And then download it as usual:
 go get -d -v github.com/lxc/lxd/lxd
 cd $GOPATH/src/github.com/lxc/lxd
 make deps
+export CGO_CFLAGS="${CGO_CFLAGS} -I${GOPATH}/deps/sqlite/ -I${GOPATH}/deps/dqlite/include/"
+export CGO_LDFLAGS="${CGO_LDFLAGS} -L${GOPATH}/deps/sqlite/.libs/ -L${GOPATH}/deps/dqlite/.libs/"
+export LD_LIBRARY_PATH="${GOPATH}/deps/sqlite/.libs/:${GOPATH}/deps/dqlite/.libs/:${LD_LIBRARY_PATH}"
 make
 ```
 
@@ -90,7 +93,7 @@ containers:
 echo "root:1000000:65536" | sudo tee -a /etc/subuid /etc/subgid
 ```
 
-Now you can run the daemon (the `--group` sudo bit allows everyone in the sudo
+Now you can run the daemon (the `--group sudo` bit allows everyone in the `sudo`
 group to talk to LXD; you can create your own group if you want):
 
 ```bash


More information about the lxc-devel mailing list