From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Pau Monne Subject: Re: Error about loading shared libraries libyajl.so.2 Date: Mon, 14 May 2012 10:28:39 +0100 Message-ID: <4FB0D047.7010104@citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Bei Guan Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Bei Guan escribi=F3: > Hi, > > This problem is solved now. > > My environment is 64-bit ubuntu and xl needs to find libyajl from the fol= lowing paths. > > trying file=3D/lib/libyajl.so.2 > trying file=3D/usr/lib/libyajl.so.2 > trying file=3D/lib/x86_64-linux-gnu/tls/x86_64/libyajl.so.2 > trying file=3D/lib/x86_64-linux-gnu/tls/libyajl.so.2 > ... > > However, the actual path of libyajl is /usr/local/lib/libyajl.so.2.0.5 wh= ere 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. > Thanks, > Bei Guan > > > > > 2012/5/12 Bei Guan> > 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 share= d 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 > >