Version française
Home     About     Download     Resources     Contact us    
Browse thread
pcre build problems on Mac OS X
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Erik de Castro Lopo <mle+ocaml@m...>
Subject: Re: [Caml-list] pcre build problems on Mac OS X
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.

<snip>

> 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