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 QAA10380; Thu, 6 Sep 2001 16:22:45 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA10432 for ; Thu, 6 Sep 2001 16:22:43 +0200 (MET DST) Received: from maties2.sun.ac.za (maties2.sun.ac.za [146.232.128.10]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f86EMar02110 for ; Thu, 6 Sep 2001 16:22:37 +0200 (MET DST) Received: from bywoner.sun.ac.za ([146.232.129.121]) by maties2.sun.ac.za with esmtp (Exim 3.33 #1) id 15f02F-0002gg-00 for caml-list@inria.fr; Thu, 06 Sep 2001 16:21:39 +0200 Received: from js by bywoner.sun.ac.za with local (Exim 3.22 #1 (Debian)) id 15f02F-0003tm-00 for ; Thu, 06 Sep 2001 16:21:39 +0200 To: ocaml mailing list Subject: Re: [Caml-list] How to use pcre (2) References: <87pu94lbdt.fsf@bywoner.sun.ac.za> <20010906152958.B24260@chopin.ai.univie.ac.at> From: Johann Spies Date: 06 Sep 2001 16:21:38 +0200 In-Reply-To: Markus Mottl's message of "Thu, 6 Sep 2001 15:29:58 +0200" Message-ID: <87sne0jt71.fsf_-_@bywoner.sun.ac.za> User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I suspect there is something wrong with my installation. I have compiled pcre in /usr/local/src and put the following files in /usr/local/lib/ocaml: libpcre.a pcre.a pcre.cma pcre.cmi pcre.cmxa pcre.mli Working on Debian Linux, that did not work. So I symlinked all those files to /usr/lib/ocaml. Then I could open pcre in the toplevel. But there is something else wrong here. Trying Markus' solution I came across the following new problem regarding pcre both in the toplevel and when I try to compile it: ------------------------- $ ocaml Objective Caml version 3.01 # let s = "abcde";; let s = "abcde";; val s : string = "abcde" # let t = Pcre.replace ~pat:"d" ~templ:"D" s;; let t = Pcre.replace ~pat:"d" ~templ:"D" s;; Reference to undefined global `Pcre' --------------------- $ ocaml Objective Caml version 3.01 # open Pcre;; open Pcre;; # let s = "abcde";; let s = "abcde";; val s : string = "abcde" # let t = replace ~pat:"d" ~templ:"D" s;; let t = replace ~pat:"d" ~templ:"D" s;; Reference to undefined global `Pcre' ---------------------------------- I tried to compile the file in which I want to use this type of function with ocamlfind ocamlopt -o v1 -package postgres,threads -thread -linkpkg v3.ml ------------- No implementations provided for the following modules: Pcre referenced from v3.cmx ------------ and also with ocamlfind ocamlopt -o v1 -package postgres,pcre,threads -thread -linkpkg v3.ml ----------- ocamlfind: package 'pcre' not found ------------ There was no META file in the pcre-sources. How do I go forward from here? Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "Behold, I stand at the door, and knock; if any man hear my voice, and open the door, I will come in to him, and will sup with him, and he with me." Revelation 3:20 ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr