From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id D4D53BB9A for ; Thu, 27 Oct 2005 21:58:09 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j9RJw9qe018842 for ; Thu, 27 Oct 2005 21:58:09 +0200 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 VAA06746 for ; Thu, 27 Oct 2005 21:58:08 +0200 (MET DST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.176]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j9RJw7IX017776 for ; Thu, 27 Oct 2005 21:58:08 +0200 Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1EVDsy-0004Yb-00; Thu, 27 Oct 2005 21:58:04 +0200 Received: from [84.58.179.30] (helo=gate.lan.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1EVDsy-0003dC-00; Thu, 27 Oct 2005 21:58:04 +0200 Received: from flakew.lan.gerd-stolpmann.de (flakew.lan.gerd-stolpmann.de [192.168.0.32]) by gate.lan.gerd-stolpmann.de (Postfix) with ESMTP id 51364C053; Thu, 27 Oct 2005 21:58:04 +0200 (CEST) Subject: Re: [Caml-list] Building PCRE-OCaml on Win32 From: Gerd Stolpmann To: Roger Levy Cc: caml-list@inria.fr In-Reply-To: <4361306F.9060208@inf.ed.ac.uk> References: <4361306F.9060208@inf.ed.ac.uk> Content-Type: text/plain Date: Thu, 27 Oct 2005 21:58:03 +0200 Message-Id: <1130443083.15589.76.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a6865a839c0178d9aa0ce41878507ea2 X-Miltered: at nez-perce with ID 43613151.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 43613150.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 pcre-ocaml:01 gerd:01 stolpmann:01 usr:01 lib:01 ocaml:01 site-lib:01 stublibs:01 gerd:01 donnerstag:01 pcre-ocaml:01 ocaml:01 libpcre:01 pcre:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 Also look into /usr/lib/ocaml/site-lib/stublibs and delete the PCRE-related DLL files. Gerd Am Donnerstag, den 27.10.2005, 20:54 +0100 schrieb Roger Levy: > I'm having difficulty installing PCRE-OCaml in my Cygwin OCaml > installation. I have the packages OCaml 3.08.1-1, libpcre 6.3-1, and > pcre 6.3-1 all from a default recent Cygwin installation, so it seems to > me that I should be able to install PCRE-OCaml (I'm getting the most > recent version, 5.10.1) straight away. Here is what I get, though: > > ===== > > /tmp/pcre-ocaml-5.10.1 $ make > [everything succeeds, though there is one warning: > pcre_stubs.c:1: warning: -fPIC ignored for target (all code is position > independent) > ] > > /tmp/pcre-ocaml-5.10.1 $ make install > make[1]: Entering directory `/tmp/pcre-ocaml-5.10.1/lib' > > Installing library with ocamlfind > ocamlfind install pcre META pcre.mli pcre.cmi pcre.cma pcre.cmxa pcre.a > libpcre_stubs.a dllpcre_stubs.so > ocamlfind: Package pcre is already installed; please remove it first - > (directory /usr/lib/ocaml/site-lib/pcre already exists) > make[1]: *** [libinstall] Error 2 > make[1]: Leaving directory `/tmp/pcre-ocaml-5.10.1/lib' > make: *** [install] Error 2 > > ===== > > If I try to uninstall, however, I get the following problem: > > ===== > > /tmp/pcre-ocaml-5.10.1 $ make uninstall > make[1]: Entering directory `/tmp/pcre-ocaml-5.10.1/lib' > > Uninstalling library with ocamlfind > ocamlfind remove pcre > ocamlfind: Package `pcre' not found > make[1]: *** [libuninstall] Error 2 > make[1]: Leaving directory `/tmp/pcre-ocaml-5.10.1/lib' > make: *** [uninstall] Error 2 > > ===== > > Now, the directory /usr/lib/ocaml/site-lib/pcre is actually empty; if I > delete it and try to install, the following happens: > > ===== > > $ make install > make[1]: Entering directory `/tmp/pcre-ocaml-5.10.1/lib' > > Installing library with ocamlfind > ocamlfind install pcre META pcre.mli pcre.cmi pcre.cma pcre.cmxa pcre.a > libpcre_stubs.a dllpcre_stubs.so > ocamlfind: dllpcre_stubs.so: No such file or directory > make[1]: *** [libinstall] Error 2 > make[1]: Leaving directory `/tmp/pcre-ocaml-5.10.1/lib' > make: *** [install] Error 2 > > ===== > > Any suggestions? I really hate using the str library for regular > expressions, since it has global state. > > I notice that Brian Donovan asked the same thing (though he was trying > to install it using the MSVC and Win32 makefiles, both of which failed) > about 18 months ago, and didn't seem to get a satisfactory reply! > > http://caml.inria.fr/pub/ml-archives/caml-list/2004/05/55a1a6ea9c641248fdc4da86e52f58b9.en.html > > Many thanks in advance for any help! > > Best, > > Roger > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Telefon: 06151/153855 Telefax: 06151/997714 ------------------------------------------------------------