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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id EFD96BB83 for ; Wed, 16 Aug 2006 22:48:27 +0200 (CEST) Received: from smtp.syd.people.net.au (smtp.syd.people.net.au [218.214.225.98]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id k7GKmO0P024370 for ; Wed, 16 Aug 2006 22:48:26 +0200 Received: (qmail 11966 invoked from network); 16 Aug 2006 20:48:21 -0000 Received: from unknown (HELO coltrane.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 16 Aug 2006 20:48:21 -0000 Received: from coltrane (coltrane [192.168.1.101]) by coltrane.mega-nerd.net (Postfix) with SMTP id 62EF67B69 for ; Thu, 17 Aug 2006 06:48:20 +1000 (EST) Date: Thu, 17 Aug 2006 06:48:20 +1000 From: Erik de Castro Lopo To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] pcre build problems on Mac OS X Message-Id: <20060817064820.d62b1b55.mle+ocaml@mega-nerd.com> In-Reply-To: <98E052F2-D3D4-4653-B558-628D92ED7525@denkzeug.de> References: <98E052F2-D3D4-4653-B558-628D92ED7525@denkzeug.de> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.8.18; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 44E38498.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 pcre:01 pcre:01 ocaml:01 traceback:01 gmake:01 usr:01 lib':01 gmake:01 usr:01 lib':01 ocamldep:01 mli:01 ocamldep:01 ocamlc: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.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Hi Christoph, I must admit that I've never built PCRE from scratch but I might still be able to help. Christoph wrote: > Trying to 'make' or 'gmake' pcre on ocaml 3.09.2, I get the following > traceback: > > gmake[1]: Entering directory `/usr/local/work/pcre-ocaml-5.11.1/lib' > gmake[2]: Entering directory `/usr/local/work/pcre-ocaml-5.11.1/lib' > ocamldep pcre.mli > ._bcdi/pcre.di > ocamldep pcre.ml > ._d/pcre.d > gmake[2]: Leaving directory `/usr/local/work/pcre-ocaml-5.11.1/lib' > gmake[2]: Entering directory `/usr/local/work/pcre-ocaml-5.11.1/lib' > ocamlc -c -cc "cc" -ccopt "-fPIC -O2 \ > -DPIC \ > -o pcre_stubs.o " pcre_stubs.c > pcre_stubs.c:40:18: error: pcre.h: No such file or directory Thats probably because you haven't install PCRE first. > Looking into the distribution, I see that pcre.h is only in the 'win' > directory - is that how it's supposed to be? Probably. Building any Unix software on windows is a royal PITA so people often include a bunch of special files for building under windows. For sane systems like Unix and MaxOSX, building PCRE support for Ocaml probably requires that the PCRE library is already installed on the system. You can get that library here: http://www.pcre.org/ There may also be instructions with the Ocaml bindings. You should read the Unix section of those instructions. Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "Every time you get a windows programmer asking you to write some ass-backward workaround, think of it as a crack junkie asking you to help stuff his pipe because his hands are too shaky." -- Conrad Parker