All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roger Pau Monne <roger.pau@citrix.com>
To: Bei Guan <gbtju85@gmail.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: Error about loading shared libraries libyajl.so.2
Date: Mon, 14 May 2012 10:28:39 +0100	[thread overview]
Message-ID: <4FB0D047.7010104@citrix.com> (raw)
In-Reply-To: <CAEQjb-RrZ3pYKDRMhHf8R3gUbgrwh2ebNQ7pvVC0oOK1Pk1wPg@mail.gmail.com>

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
>
>

  reply	other threads:[~2012-05-14  9:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2012-05-14  9:36     ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FB0D047.7010104@citrix.com \
    --to=roger.pau@citrix.com \
    --cc=gbtju85@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.