Hi, When I do "xl list", there is an error like this: root@gavin-desktop:~# xl list xl: error while loading shared libraries: libyajl.so.2: cannot open shared object file: No such file or directory I install the yajl followed this message: http://lists.xen.org/archives/html/xen-users/2012-03/msg00325.html After that, the module libyajl.so.2 is copied to /usr/local/lib/. Is there any advice on this problem. Thank you so much. Best Regards, Bei Guan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Hi, This problem is solved now. My environment is 64-bit ubuntu and xl needs to find libyajl from the following paths. trying file=/lib/libyajl.so.2 trying file=/usr/lib/libyajl.so.2 trying file=/lib/x86_64-linux-gnu/tls/x86_64/libyajl.so.2 trying file=/lib/x86_64-linux-gnu/tls/libyajl.so.2 ... However, the actual path of libyajl is /usr/local/lib/libyajl.so.2.0.5 where I just installed into. So, a symbolic link is enough to solve this problem. Just like this: # ln -s /usr/local/lib/libyajl.so.2.0.5 /lib/libyajl.so.2 Thanks, Bei Guan 2012/5/12 Bei Guan <gbtju85@gmail.com>> Hi, > > When I do "xl list", there is an error like this: > > root@gavin-desktop:~# xl list > xl: error while loading shared libraries: libyajl.so.2: cannot open shared > object file: No such file or directory > > I install the yajl followed this message: > http://lists.xen.org/archives/html/xen-users/2012-03/msg00325.html > > After that, the module libyajl.so.2 is copied to /usr/local/lib/. > > Is there any advice on this problem. Thank you so much. > > > Best Regards, > Bei Guan > >-- Best Regards, Bei Guan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Roger Pau Monne
2012-May-14 09:28 UTC
Re: Error about loading shared libraries libyajl.so.2
Bei Guan escribió:> Hi, > > This problem is solved now. > > My environment is 64-bit ubuntu and xl needs to find libyajl from the following paths. > > trying file=/lib/libyajl.so.2 > trying file=/usr/lib/libyajl.so.2 > trying file=/lib/x86_64-linux-gnu/tls/x86_64/libyajl.so.2 > trying file=/lib/x86_64-linux-gnu/tls/libyajl.so.2 > ... > > However, the actual path of libyajl is /usr/local/lib/libyajl.so.2.0.5 where I just installed into. > So, a symbolic link is enough to solve this problem. Just like this: > # ln -s /usr/local/lib/libyajl.so.2.0.5 /lib/libyajl.so.2I''ts probably best to add /usr/local/lib to LD_LIBRARY_PATH instead polluting /usr/lib or /lib with symlinks.> Thanks, > Bei Guan > > > > > 2012/5/12 Bei Guan<gbtju85@gmail.com<mailto:gbtju85@gmail.com>> > Hi, > > When I do "xl list", there is an error like this: > > root@gavin-desktop:~# xl list > xl: error while loading shared libraries: libyajl.so.2: cannot open shared object file: No such file or directory > > I install the yajl followed this message: > http://lists.xen.org/archives/html/xen-users/2012-03/msg00325.html > > After that, the module libyajl.so.2 is copied to /usr/local/lib/. > > Is there any advice on this problem. Thank you so much. > > > Best Regards, > Bei Guan > > > > > -- > Best Regards, > Bei Guan > >
On Mon, 2012-05-14 at 10:28 +0100, Roger Pau Monne wrote:> Bei Guan escribió: > > Hi, > > > > This problem is solved now. > > > > My environment is 64-bit ubuntu and xl needs to find libyajl from the following paths. > > > > trying file=/lib/libyajl.so.2 > > trying file=/usr/lib/libyajl.so.2 > > trying file=/lib/x86_64-linux-gnu/tls/x86_64/libyajl.so.2 > > trying file=/lib/x86_64-linux-gnu/tls/libyajl.so.2 > > ... > > > > However, the actual path of libyajl is /usr/local/lib/libyajl.so.2.0.5 where I just installed into. > > So, a symbolic link is enough to solve this problem. Just like this: > > # ln -s /usr/local/lib/libyajl.so.2.0.5 /lib/libyajl.so.2 > > I'ts probably best to add /usr/local/lib to LD_LIBRARY_PATH instead > polluting /usr/lib or /lib with symlinks.Weird that /usr/local/*something* isn't in /etc/ld.so.conf (/usr/local/lib is there on my Debian system) In any case it is even better to just install the libyajl packages from your distro -- there's no requirement to build it from source. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel