* Error about loading shared libraries libyajl.so.2
@ 2012-05-11 16:39 Bei Guan
2012-05-11 17:22 ` Bei Guan
0 siblings, 1 reply; 4+ messages in thread
From: Bei Guan @ 2012-05-11 16:39 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 459 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 626 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error about loading shared libraries libyajl.so.2
2012-05-11 16:39 Error about loading shared libraries libyajl.so.2 Bei Guan
@ 2012-05-11 17:22 ` Bei Guan
2012-05-14 9:28 ` Roger Pau Monne
0 siblings, 1 reply; 4+ messages in thread
From: Bei Guan @ 2012-05-11 17:22 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1125 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1646 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error about loading shared libraries libyajl.so.2
2012-05-11 17:22 ` Bei Guan
@ 2012-05-14 9:28 ` Roger Pau Monne
2012-05-14 9:36 ` Ian Campbell
0 siblings, 1 reply; 4+ messages in thread
From: Roger Pau Monne @ 2012-05-14 9:28 UTC (permalink / raw)
To: Bei Guan; +Cc: xen-devel
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.
> 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
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error about loading shared libraries libyajl.so.2
2012-05-14 9:28 ` Roger Pau Monne
@ 2012-05-14 9:36 ` Ian Campbell
0 siblings, 0 replies; 4+ messages in thread
From: Ian Campbell @ 2012-05-14 9:36 UTC (permalink / raw)
To: Roger Pau Monne; +Cc: Bei Guan, xen-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-05-14 9:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-11 16:39 Error about loading shared libraries libyajl.so.2 Bei Guan
2012-05-11 17:22 ` Bei Guan
2012-05-14 9:28 ` Roger Pau Monne
2012-05-14 9:36 ` Ian Campbell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.