[Lxc-users] Problem with lxc-attach on Linux v3.1.0

Nikhil Handigol nikhil.handigol at gmail.com
Thu Sep 8 17:12:42 UTC 2011


It is indeed the case:

$ type lxc-attach
lxc-attach is /usr/local/bin/lxc-attach

$ ldd /usr/local/bin/lxc-attach
linux-vdso.so.1 =>  (0x00007fff9ddff000)
liblxc.so.0 => /usr/local/lib/liblxc.so.0 (0x00007f072165a000)
libcap.so.2 => /lib/libcap.so.2 (0x00007f0721439000)
libc.so.6 => /lib/libc.so.6 (0x00007f07210b5000)
libutil.so.1 => /lib/libutil.so.1 (0x00007f0720eb2000)
libattr.so.1 => /lib/libattr.so.1 (0x00007f0720cad000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0721881000)

-/\/


On Thu, Sep 8, 2011 at 10:09 AM, Daniel Lezcano <daniel.lezcano at free.fr>wrote:

> On 09/08/2011 06:48 PM, Nikhil Handigol wrote:
> > Just to be sure that wasn't the case, I tried running the executable
> > directly from the lxc source directory. I got the same error:
> >
> > $ cd src/lxc
> > $ ./lxc-execute -n foo -f /etc/mn/host.conf -- /bin/bash
> > root at mnhost:/home/nikhilh/lxc/src/lxc#
>
> Yes but the library path is the system path, so to be sure, do:
>
> type lxc-attach
>
> for me that gives:
>        lxc-attach is /usr/bin/lxc-attach
>
> ldd /usr/bin/lxc-attach
>
> and that gives:
>        linux-vdso.so.1 =>  (0x00007fff3d56d000)
>        liblxc.so.0 => /usr/lib64/liblxc.so.0 (0x00007f7d8359e000)
>        libcap.so.2 => /lib/libcap.so.2 (0x00007f7d8336e000)
>        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7d82fd9000)
>        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1
> (0x00007f7d82dd6000)
>        /lib64/ld-linux-x86-64.so.2 (0x00007f7d837ca000)
>
> So in your case, that should /usr/local/bin and /usr/local/lib/liblxc.so..
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110908/9da76b34/attachment.html>


More information about the lxc-users mailing list