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 MAA20642; Fri, 22 Feb 2002 12:30:44 +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 MAA20460 for ; Fri, 22 Feb 2002 12:30:43 +0100 (MET) Received: from mel-rto6.wanadoo.fr (smtp-out-6.wanadoo.fr [193.252.19.25]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g1MBUbv27350 for ; Fri, 22 Feb 2002 12:30:39 +0100 (MET) Received: from mel-rta9.wanadoo.fr (193.252.19.69) by mel-rto6.wanadoo.fr; 22 Feb 2002 12:30:30 +0100 Received: from debian (80.8.74.77) by mel-rta9.wanadoo.fr; 22 Feb 2002 12:30:19 +0100 Received: from moi by debian with local (Exim 3.34 #1 (Debian)) id 16eDuQ-0000oz-00 for ; Fri, 22 Feb 2002 12:30:38 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] Problem using pcre on Debian References: <20020222104452.GA24020@adept.co.za> From: Remi VANICAT Date: 22 Feb 2002 12:30:38 +0100 In-Reply-To: <20020222104452.GA24020@adept.co.za> Message-ID: <87u1s9n481.dlv@wanadoo.fr> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Johann Spies writes: > There is no Debian package for pcre so I compiled one in > /usr/local/src and installed it to /usr/local/lib/ocaml/pcre. > > The compilation went without a problem after I removed the comment to > use STATIC=1 in the Makefile. I also copied META to the installation > directory. > > Now when try to use it in the toplevel the following happens: > ------------------------------------- > $ ledit ocaml > Objective Caml version 3.04 > > # #use "ocamlfind";; > Findlib has been successfully loaded. Additional directives: > #require "package";; to load a package > #list;; to list the available packages > #camlp4o;; to load camlp4 (standard syntax) > #camlp4r;; to load camlp4 (revised syntax) > Topfind.reset();; to force that packages will be reloaded > > - : unit = () > # #require "pcre";; > Loading /usr/local/lib/ocaml/pcre/pcre.cma > The external function `pcre_exec_wrapper_bc' is not available Which ocaml debian package are your using ? if you are using 3.04-9 (from unstable, only in incoming the last time I check) the you have to make (as root) ocaml-ldconf -a /usr/local/lib/ocaml/pcre/ to add the dll support for pcre. (this will work only in there is a *.so file in the /usr/local/lib/ocaml/pcre/ directory.) if there is no *.so, you will have to make a custom toplevel (with ocamlmktop, I believe that findlib have some support for it). -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat ------------------- 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