Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Sylvain Le Gall <sylvain@le-gall.net>
To: caml-list@inria.fr
Subject: [Caml-list] [was: oasis and camlp4] libpcre.so.0 No such file or directory
Date: Tue, 29 Mar 2011 07:50:55 +0000 (UTC)	[thread overview]
Message-ID: <slrnip33qv.78h.sylvain@gallu.homelinux.org> (raw)
In-Reply-To: <20110329024411.GI20598@localhost>

Hello,

On 29-03-2011, Guillaume Yziquel <guillaume.yziquel@citycable.ch> wrote:
> Le Monday 28 Mar 2011 à 22:19:34 (+0100), Joel Reymont a écrit :
>> How do you integrate Oasis with camlp4, for example, to make the following comment at the beginning of a file take effect?
>> 
>> (* pp camlp4o pa_labelscope.cmo pa_openin.cmo *)
>> 
>> 	Thanks, Joel
>
> Hi.
>
> Clearly, I'm quite a newbie when it comes to oasis. I've mostly been
> using customised ocamlbuild stuff for my own purposes, so I'd appreciate
> some advice.
>
> Basically, I've been busy this evening implementing the zmq_poll()
> functionality into the ZeroMQ binding.
>
> Oasis has been installed with the installer from ocamlcore. Somehow not
> the best way, judging by the output below. Is there a quick way out of
> that, or should I recompile oasis from the source tarball?
>
> yziquel@seldon:~/git/ocaml-zmq$ /home/yziquel/oasis-0.2.0/bin/oasis 
> /home/yziquel/oasis-0.2.0/bin/../libexec/oasis: error while loading
> shared libraries: libpcre.so.0: cannot open shared object file: No such
> file or directory
> yziquel@seldon:~/git/ocaml-zmq$ locate libpcre.so.0
> yziquel@seldon:~/git/ocaml-zmq$ locate libpcre.so
> /lib/libpcre.so.3
> /lib/libpcre.so.3.12.1
> /usr/lib32/libpcre.so.3
> /usr/lib32/libpcre.so.3.12.1
> /usr/lib/libpcre.so
> yziquel@seldon:~/git/ocaml-zmq$ 
>

Indeed, this is a known bug:
https://forge.ocamlcore.org/tracker/index.php?func=detail&aid=784&group_id=54&atid=291

The fix is:
# cd /lib
# ln -s libpcre.so.3.12.1 libpcre.so.0
# cd lib32
# ln -s libpcre.so.3.12.1 libpcre.so.0
# ldconfig -v

You can also put the link into any path accessible through
LD_LIBRARY_PATH.

This bug is unfortunate and should be fixed (TM). Just missing time to
do the rebuild that should include libpcre inside the installer.

Cheers,
Sylvain Le Gall
-- 
My company: http://www.ocamlcore.com
Linkedin:   http://fr.linkedin.com/in/sylvainlegall
Start an OCaml project here: http://forge.ocamlcore.org
OCaml blogs:                 http://planet.ocamlcore.org



      parent reply	other threads:[~2011-03-29  7:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-28 21:19 [Caml-list] oasis and camlp4 Joel Reymont
2011-03-28 22:16 ` [Caml-list] " Sylvain Le Gall
2011-03-29  2:44 ` [Caml-list] " Guillaume Yziquel
2011-03-29  2:57   ` Guillaume Yziquel
2011-03-29  7:50   ` Sylvain Le Gall [this message]

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=slrnip33qv.78h.sylvain@gallu.homelinux.org \
    --to=sylvain@le-gall.net \
    --cc=caml-list@inria.fr \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox