From: Erik de Castro Lopo <mle+ocaml@mega-nerd.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] pcre build problems on Mac OS X
Date: Thu, 17 Aug 2006 06:48:20 +1000 [thread overview]
Message-ID: <20060817064820.d62b1b55.mle+ocaml@mega-nerd.com> (raw)
In-Reply-To: <98E052F2-D3D4-4653-B558-628D92ED7525@denkzeug.de>
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
next prev parent reply other threads:[~2006-08-16 20:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-16 15:04 Christoph
2006-08-16 20:48 ` Erik de Castro Lopo [this message]
2006-08-16 21:15 ` [Caml-list] " Christoph Pingel
2006-08-17 2:36 ` skaller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060817064820.d62b1b55.mle+ocaml@mega-nerd.com \
--to=mle+ocaml@mega-nerd.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox