Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] shared libraries [pcre-ocaml]
[ 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] shared libraries [pcre-ocaml]
On Mon, 22 Apr 2002, Richard Nyberg wrote:
> Error on dynamically loaded library: Shared object "libpcre.so.0" not found

> So, should I have to use ldconfig or is there something wrong?

It seems to me that you hadn't set the environment variable
"OCAML_LIB_INSTALL" to your installation directory before "make"ing the
library, i.e. it's default is "+contrib" now:

[snip]
> access("/usr/local/lib/ocaml/contrib/libpcre.so.0",0) ERR#2 'No such file or directory'
[snip]

The path leading to this directory is added to the generated OCaml-library
so that it can find the shared C-library. Usually things should also work
when you set your LD_LIBRARY_PATH appropriately in your shell or even add
this path to your global /etc/ld.so.conf. However, the preferred solution
is surely to let the library now where to find things it depends on.

Regards,
Markus Mottl

-- 
Markus Mottl                                             markus@oefai.at
Austrian Research Institute
for Artificial Intelligence                  http://www.oefai.at/~markus
-------------------
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