Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Problem using pcre on Debian
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Remi VANICAT <vanicat@l...>
Subject: Re: [Caml-list] Problem using pcre on Debian
Johann Spies <jspies@sun.ac.za> writes:

> There is no Debian package for pcre so I compiled one in
> /usr/local/src and installed it to /usr/local/lib/ocaml/pcre.
> 
> The compilation went without a problem after I removed the comment to
> use STATIC=1 in the Makefile.  I also copied  META to the installation
> directory.
> 
> Now when  try to use it in the toplevel the following happens:
> -------------------------------------
> $ ledit ocaml
>         Objective Caml version 3.04
> 
> # #use "ocamlfind";;
> Findlib has been successfully loaded. Additional directives:
>   #require "package";;      to load a package
>   #list;;                   to list the available packages
>   #camlp4o;;                to load camlp4 (standard syntax)
>   #camlp4r;;                to load camlp4 (revised syntax)
>   Topfind.reset();;         to force that packages will be reloaded
> 
> - : unit = ()
> # #require "pcre";;
> Loading /usr/local/lib/ocaml/pcre/pcre.cma
> The external function `pcre_exec_wrapper_bc' is not available

Which ocaml debian package are your using ? if you are using 3.04-9
(from unstable, only in incoming the last time I check)

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.)

if there is no *.so, you will have to make a custom toplevel (with
ocamlmktop, I believe that findlib have some support for it).



-- 
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