Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] Problem using pcre on Debian
On Fri, 22 Feb 2002, Johann Spies wrote:
> On Fri, Feb 22, 2002 at 03:48:39PM +0100, Markus Mottl wrote:
> > What is the particular problem that prevents you from compiling the PCRE
> > as a shared library?
> A series of messages like this:
> ----------------------------------------
> ocamlc  -I ../../pcre-OCaml      -ccopt -L../../pcre-OCaml  pcre.cma
> -o cloc \                        cloc.cmo
> Error on dynamically loaded library: cannot open shared
> object fi$make[2]: *** [cloc] Error 2
> ------------------------------------

This is a known issue. The latest release contains information about
it in the INSTALL-file.  In short, you'll have to install the library
before the examples can be compiled _unless_ you already have a
installed in some place where the loader can find it (e.g. either in a
place like /usr/lib or in some directory that is in LD_LIBRARY_PATH).

I know this is really inconvenient, but I don't know how to solve this
issue without adding further search paths for dynamic libraries with
-rpath to the PCRE-library. A bit overkill just for the examples...

Just do a "make install" and compile the examples again. This should work.

Markus Mottl

Markus Mottl                                   
Austrian Research Institute
for Artificial Intelligence        
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: