From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA28655; Fri, 22 Feb 2002 17:26:03 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA29686 for ; Fri, 22 Feb 2002 17:26:03 +0100 (MET) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g1MGQ2v03164 for ; Fri, 22 Feb 2002 17:26:02 +0100 (MET) Received: from chopin.ai.univie.ac.at (root@chopin.ai.univie.ac.at [131.130.174.170]) by fichte.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id RAA20435; Fri, 22 Feb 2002 17:26:01 +0100 Received: (from markus@localhost) by chopin.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id RAA25605; Fri, 22 Feb 2002 17:26:01 +0100 Date: Fri, 22 Feb 2002 17:26:01 +0100 From: Markus Mottl To: Johann Spies Cc: OCAML Subject: Re: [Caml-list] Problem using pcre on Debian Message-ID: <20020222162601.GB25188@chopin.ai.univie.ac.at> Mail-Followup-To: Johann Spies , OCAML References: <20020222104452.GA24020@adept.co.za> <20020222144839.GA22822@chopin.ai.univie.ac.at> <20020222160342.GB26933@adept.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020222160342.GB26933@adept.co.za> User-Agent: Mutt/1.3.26i Organization: Austrian Research Institute for Artificial Intelligence Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 22 Feb 2002, Johann Spies wrote: > On Fri, Feb 22, 2002 at 03:48:39PM +0100, Markus Mottl wrote: > > What is the particular problem that prevents you from compiling the PCRE > > as a shared library? > > A series of messages like this: > ---------------------------------------- > ocamlc -I ../../pcre-OCaml -ccopt -L../../pcre-OCaml pcre.cma > -o cloc \ cloc.cmo > Error on dynamically loaded library: libpcre.so.0: cannot open shared > object fi$make[2]: *** [cloc] Error 2 > ------------------------------------ This is a known issue. The latest release contains information about it in the INSTALL-file. In short, you'll have to install the library before the examples can be compiled _unless_ you already have a libpcre.so installed in some place where the loader can find it (e.g. either in a place like /usr/lib or in some directory that is in LD_LIBRARY_PATH). I know this is really inconvenient, but I don't know how to solve this issue without adding further search paths for dynamic libraries with -rpath to the PCRE-library. A bit overkill just for the examples... Just do a "make install" and compile the examples again. This should work. Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners