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 LAA19287; Fri, 22 Feb 2002 11:45:06 +0100 (MET) 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 LAA19708 for ; Fri, 22 Feb 2002 11:45:06 +0100 (MET) Received: from maties2.sun.ac.za (maties2.sun.ac.za [146.232.128.10]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g1MAj4122374 for ; Fri, 22 Feb 2002 11:45:04 +0100 (MET) Received: from bywoner.sun.ac.za ([146.232.129.121] helo=localhost) by maties2.sun.ac.za with esmtp (Exim 3.34 #1) id 16eDC8-0001fe-00 for caml-list@inria.fr; Fri, 22 Feb 2002 12:44:52 +0200 Received: from js by localhost with local (Exim 3.34 #1 (Debian)) id 16eDC8-0006Fj-00 for ; Fri, 22 Feb 2002 12:44:52 +0200 Date: Fri, 22 Feb 2002 12:44:52 +0200 From: Johann Spies To: caml-list@inria.fr Subject: [Caml-list] Problem using pcre on Debian Message-ID: <20020222104452.GA24020@adept.co.za> Mail-Followup-To: Johann Spies , caml-list@inria.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i X-Scanner: exiscan *16eDC8-0001fe-00*lh7rcJs537w* http://duncanthrax.net/exiscan/ Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 # #list;; [I removed the other lines:] pcre (version: 4.18-2) # let s = "Dit lyk nou so";; - : string = "Dit lyk nou so" # let ss =Pcre.split s;; Reference to undefined global `Pcre' ================================================ Any remedy? I could use an older version of pcre in the same way. Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "The LORD bless thee, and keep thee; The LORD make his face shine upon thee, and be gracious unto thee; The LORD lift up his countenance upon thee, and give thee peace." Numbers 6:24-26 ------------------- 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