From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p2T7pDNJ023644 for ; Tue, 29 Mar 2011 09:51:13 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnMHAMqOkU1QW+UMgWdsb2JhbACESZQFjHcUAQEWJiWJFKl8kQCBJ4NMdwSNAg X-IronPort-AV: E=Sophos;i="4.63,260,1299452400"; d="scan'208";a="95272888" Received: from lo.gmane.org ([80.91.229.12]) by mail2-smtp-roc.national.inria.fr with ESMTP; 29 Mar 2011 09:51:08 +0200 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q4Thj-00072f-BG for caml-list@inria.fr; Tue, 29 Mar 2011 09:51:07 +0200 Received: from avelizy-155-1-73-45.w90-2.abo.wanadoo.fr ([90.2.24.45]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2011 09:51:07 +0200 Received: from sylvain by avelizy-155-1-73-45.w90-2.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2011 09:51:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Date: Tue, 29 Mar 2011 07:50:55 +0000 (UTC) Message-ID: References: <4E84BA17-E496-4039-842C-B54E18B22E86@gmail.com> <20110329024411.GI20598@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: avelizy-155-1-73-45.w90-2.abo.wanadoo.fr User-Agent: slrn/pre1.0.0-18 (Linux) Subject: [Caml-list] [was: oasis and camlp4] libpcre.so.0 No such file or directory Hello, On 29-03-2011, Guillaume Yziquel 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