<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Fajar,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">> <span style="font-family:arial,sans-serif;font-size:13px"> </span><span style="font-family:arial,sans-serif;font-size:13px">do a "apt-get build-dep lxc"</span></div>
<div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:13px">This works, thanks.</span></div>
<div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_default" style="font-size:small"><div class="gmail_default" style="font-family:arial,sans-serif">
$ sudo lxc-ls</div><div class="gmail_default" style="font-family:arial,sans-serif">p1</div><span style="font-family:arial,sans-serif;font-size:13px"><div class="gmail_default" style="font-size:small">$ sudo lxc-start -n p1 -d</div>
<div class="gmail_default" style="font-size:small">$ sudo lxc-info -n p1</div><div class="gmail_default" style="font-size:small">Name: p1</div><div class="gmail_default" style="font-size:small">State: RUNNING</div>
<div class="gmail_default" style="font-size:small">PID: 61276</div><div class="gmail_default" style="font-size:small">IP: 10.0.3.170</div><div class="gmail_default" style="font-size:small">CPU use: 1.02 seconds</div>
<div class="gmail_default" style="font-size:small">BlkIO use: 488.00 KiB</div><div class="gmail_default" style="font-size:small">Memory use: 7.47 MiB</div><div class="gmail_default" style="font-size:small">Link: vethRX599V</div>
<div class="gmail_default" style="font-size:small"> TX bytes: 2.07 KiB</div><div class="gmail_default" style="font-size:small"> RX bytes: 2.04 KiB</div><div class="gmail_default" style="font-size:small"> Total bytes: 4.11 KiB</div>
<div class="gmail_default" style="font-size:small"><br></div></span></div><div class="gmail_default" style="font-size:small">Would you please consider to update the README and INSTALL files on github with the valuable information on how to build LXC packages instead of the simple:</div>
<div class="gmail_default" style="font-size:small">'./autogen.sh && ./configure && make && sudo make install'</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
Again, your help is much appreciated.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Best regards,<br></div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">PhiHo</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 27, 2014 at 8:54 PM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Wed, May 28, 2014 at 7:41 AM, Phiho Hoang <<a href="mailto:hohoangphi@gmail.com">hohoangphi@gmail.com</a>> wrote:<br>
> Hi Serge,<br>
><br>
> (This is a resend with a zip attached to reduce the size of this posting)<br>
><br>
>> grab the debian/ tree from the lxc package<br>
><br>
> I got it here (thanks to Fajar):<br>
><br>
><br>
> <a href="http://archive.ubuntu.com/ubuntu/pool/main/l/lxc/lxc_1.0.3-0ubuntu3.debian.tar.gz" target="_blank">http://archive.ubuntu.com/ubuntu/pool/main/l/lxc/lxc_1.0.3-0ubuntu3.debian.tar.gz</a><br>
><br>
>> and copy it under the git tree, then run debian/rules build<br>
> $ git clone <a href="https://github.com/lxc/lxc.git" target="_blank">https://github.com/lxc/lxc.git</a><br>
> $ cd lxc ; tar xvzf ../Downloads/lxc_1.0.3-0ubuntu3.debian.tar.gz<br>
> $ sudo apt-get install debhelper, dh-autoreconf<br>
<br>
</div>Did you also install other dependencies? debian/control should list<br>
what's needed to build. Or do a "apt-get build-dep lxc"<br>
<div class=""><br>
> $ debian/rules build > build.log 2>&1<br>
> $ phiho@lxc103:~/lxc$ tail build.log<br>
> #define _ALL_SOURCE 1<br>
> #define _GNU_SOURCE 1<br>
> #define _POSIX_PTHREAD_SEMANTICS 1<br>
> #define _TANDEM_SOURCE 1<br>
><br>
> configure: exit 1<br>
<br>
</div><div class="">> Please find attached 'config.log' and 'build.log' in a zip file<br>
> 7PM-May27.zip<br>
<br>
</div>Did you actually read the configure output?<br>
<br>
configure:5423: checking sys/apparmor.h presence<br>
configure:5423: gcc -E -D_FORTIFY_SOURCE=2 conftest.c<br>
conftest.c:26:26: fatal error: sys/apparmor.h: No such file or directory<br>
#include <sys/apparmor.h><br>
<br>
<br>
Lookup who has that file:<br>
<a href="http://packages.ubuntu.com/search?mode=exactfilename&suite=trusty§ion=all&arch=any&keywords=sys%2Fapparmor.h&searchon=contents" target="_blank">http://packages.ubuntu.com/search?mode=exactfilename&suite=trusty§ion=all&arch=any&keywords=sys%2Fapparmor.h&searchon=contents</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Fajar<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div></div></blockquote></div><br></div>