From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA01134; Mon, 22 Apr 2002 12:41:36 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA01237 for ; Mon, 22 Apr 2002 12:41:35 +0200 (MET DST) Received: from kiefer.ai.univie.ac.at (kiefer.ai.univie.ac.at [131.130.174.157]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3MAfYj06778 for ; Mon, 22 Apr 2002 12:41:35 +0200 (MET DST) Received: (from markus@localhost) by kiefer.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id LAA12942; Mon, 22 Apr 2002 11:42:08 +0200 Date: Mon, 22 Apr 2002 11:42:08 +0200 From: Markus Mottl To: Richard Nyberg Cc: OCAML Subject: Re: [Caml-list] shared libraries [pcre-ocaml] Message-ID: <20020422094208.GA12805@kiefer.ai.univie.ac.at> Mail-Followup-To: Richard Nyberg , OCAML References: <20020422103046.B21430@gromit.it.su.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020422103046.B21430@gromit.it.su.se> User-Agent: Mutt/1.3.26i Organization: Austrian Research Institute for Artificial Intelligence Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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