<div dir="ltr">for the rpm part, you can do make rpm after the make and update the lxc that came/require docker..<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 25, 2014 at 2:29 AM, Kevin Wilson <span dir="ltr"><<a href="mailto:wkevils@gmail.com" target="_blank">wkevils@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks, Stephane,<br>
<br>
I just want to let you know that<br>
./configure --disable-python --prefix=/test --with-config-path=/test/var/lib/lxc<br>
and then<br>
lxc-create -n mybb -t busybox<br>
and<br>
lxc-ls<br>
does show it the container I created<br>
<br>
regards,<br>
Kevin<br>
<div class="HOEnZb"><div class="h5"><br>
On Sun, Feb 23, 2014 at 11:06 PM, Stéphane Graber <<a href="mailto:stgraber@ubuntu.com">stgraber@ubuntu.com</a>> wrote:<br>
> On Sun, Feb 23, 2014 at 09:59:16PM +0200, Kevin Wilson wrote:<br>
>> Hello,<br>
>> My question is about lxc.1.0:<br>
>><br>
>> I want first to verify that my understanding is correct:<br>
>> lxc-ls, which is a python script, is created both when using<br>
>> --enable-python and when not using --enable-python in ./configure.<br>
>> And in fact, --enable-python is not needed so that it will work.<br>
>><br>
>> Please let me know if I am correct in this (and I would appreciate if<br>
>> somebody will elaborate about what is --enable-python for).<br>
>><br>
>> Second, I have a Fedora 20 x86_64 machine on which docker is<br>
>> installed; as part of<br>
>> docker rpm installation, it installs lxc 0.9.<br>
>><br>
>> I want to do tests with lxc-1.0 on this machine without<br>
>> removing docker, so I had installed lxc-1.0 from the tar file<br>
>> from <a href="http://linuxcontainers.org/downloads/" target="_blank">http://linuxcontainers.org/downloads/</a><br>
>><br>
>> I had run this:<br>
>> ./configure --enable-python  --prefix=/test<br>
>> make && make install<br>
>> export PATH=/test/bin:$PATH<br>
>> export LD_LIBRARY_PATH=/test/lib<br>
>><br>
>> lxc-ls<br>
>> Traceback (most recent call last):<br>
>>   File "/test/bin/lxc-ls", line 31, in <module><br>
>>     import lxc<br>
>> ImportError: No module named 'lxc'<br>
>> I also tried without --enable-python (though it seems to me not needed at all):<br>
>><br>
>> ./configure   --prefix=/test<br>
>> make && make install<br>
>> export PATH=/test/bin:$PATH<br>
>> export LD_LIBRARY_PATH=/test/lib<br>
><br>
> All options are enabled by default if the requirements for the option<br>
> are met.<br>
><br>
> Since you appear to have the python3 headers installed on your system,<br>
> --enable-python or not, the result is the same and the configuration<br>
> output at the end of the configure script should tell you as much.<br>
><br>
> To disable python3 and instead get the shell lxc-ls replacement, you<br>
> need to pass --disable-python to configure.<br>
><br>
>><br>
>><br>
>> lxc-ls<br>
>> Traceback (most recent call last):<br>
>>   File "/test/bin/lxc-ls", line 31, in <module><br>
>>     import lxc<br>
>> ImportError: No module named 'lxc'<br>
>><br>
>> Any ideas ?<br>
>> I would appreciate if somebody will test it on his machine (Ubunut/other) and<br>
>> tell me it does work (and on which distro and the distro version)<br>
>><br>
>> Kevin<br>
>> _______________________________________________<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><br>
><br>
> --<br>
> Stéphane Graber<br>
> Ubuntu developer<br>
> <a href="http://www.ubuntu.com" target="_blank">http://www.ubuntu.com</a><br>
><br>
> _______________________________________________<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><br>
_______________________________________________<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><br>
</div></div></blockquote></div><br></div>