caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Remi VANICAT <vanicat@labri.u-bordeaux.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Problem using pcre on Debian
Date: 22 Feb 2002 15:57:09 +0100	[thread overview]
Message-ID: <87bsehmunu.dlv@wanadoo.fr> (raw)
In-Reply-To: <20020222140847.GD24228@adept.co.za>

Johann Spies <jspies@sun.ac.za> writes:

> On Fri, Feb 22, 2002 at 12:30:38PM +0100, Remi VANICAT wrote:
> 
> > Which ocaml debian package are your using ? if you are using 3.04-9
> 
> Yes I am using 3.04-9.
> 
> > the you have to make (as root)
> > ocaml-ldconf -a /usr/local/lib/ocaml/pcre/
> > 
> > to add the dll support for pcre. (this will work only in there is
> > a *.so file in the /usr/local/lib/ocaml/pcre/ directory.)
> 
> :(  There is no .so file.  I could not compile it with dynamic
> linking.  Why?

the distribution of pcre include it's own pcre. You should use the one
installed by debian.

I successfully build ocaml-pcre on debian with shared suport by
- installing the libpcre3-dev package
- modifying one of the pcre-OCaml/Makefile :
replacing 

shared:	byte-code-nolink native-code-nolink
	ocamlmklib -o pcre pcre.cmo pcre.cmx pcre_intf.o \
		-L../pcre-C/.libs -lpcre -rpath $(OCAML_LIB_INSTALL)
	cp ../pcre-C/.libs/libpcre.a .
	ar r libpcre.a pcre_intf.o
	ranlib libpcre.a

by

shared:	byte-code-nolink native-code-nolink
	ocamlmklib -o pcre pcre.cmo pcre.cmx pcre_intf.o \
		-lpcre -rpath $(OCAML_LIB_INSTALL)

it compile. By the way the pcre library in debian is not the same than
the pcre-C in pcre-ocaml, so there may be problems, and I have do no
further test.


-- 
Rémi Vanicat
vanicat@labri.u-bordeaux.fr
http://dept-info.labri.u-bordeaux.fr/~vanicat
-------------------
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


  reply	other threads:[~2002-02-22 14:57 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-22 10:44 Johann Spies
2002-02-22 11:30 ` Remi VANICAT
2002-02-22 14:08   ` Johann Spies
2002-02-22 14:57     ` Remi VANICAT [this message]
2002-02-22 16:08       ` Markus Mottl
2002-02-22 12:59 ` Stefano Zacchiroli
2002-02-22 14:48 ` Markus Mottl
2002-02-22 16:03   ` Johann Spies
2002-02-22 16:17     ` Alain Frisch
2002-02-22 16:27       ` Johann Spies
2002-02-22 21:14         ` Markus Mottl
2002-02-24 17:30           ` Xavier Leroy
2002-02-24 20:44             ` Markus Mottl
2002-02-26 12:06               ` Johann Spies
2002-02-22 16:26     ` Markus Mottl
2002-02-22 16:01 ` Alain Frisch

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=87bsehmunu.dlv@wanadoo.fr \
    --to=vanicat@labri.u-bordeaux.fr \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).