Date: Thu, 15 May 2003 16:55:40 +0200 From: fabrice bauzac To: lablgtk at kaba.or.jp Subject: Re: Pb detection of BINDIR in make configure Message-ID: <20030515145540.GA6289 at noon.dnsalias.net> References: <16067.33308.356580.296677 at mailhost.lri.fr> <20030515123806.GA711 at iliana> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030515123806.GA711 at iliana> Sender: Fabrice Bauzac On Thu, May 15, 2003 at 02:38:06PM +0200, Sven Luther wrote: > Anyway, in most cases, you can't infer the BINDIR from the LIBDIR, > since there is no guarantee that the user has not moved the one or > the other somewhere else. It is my case. I have had problems installing lablgtk, as I'm not root on many systems I use. Usually, I just install libraries in ~/.prefix-PACKAGE, and a script in ~/.bash_profile adds ~/.prefix-*/bin to the PATH environment variable ~/.prefix-*/lib to the LD_LIBRARY_PATH, and deals with a few other look-alike variables in the same way. This way, I can install any binary or library on my account and it works. Concerning ocaml, the OCAMLLIB environment variable overrides the default result of "ocamlc -where". $ ocamlc -where /usr/lib/ocaml/3.06 $ However, the result has to be interpreted as one directory, and not as a list of directories separated with the ":" character (which was the case of variables such as PATH). [1] explains that OCAMLLIB is a single directory. [1] http://caml.inria.fr/ocaml/htmlman/manual024.html So I ended up with creating a shell script that will recursively symlink all library files (be it in /usr/lib/ocaml/3.06 or ~/.prefix-lablgtk/lib/ocaml/3.06) into ~/.ocamllib. Then if I set the OCAMLLIB environment variable to ~/.ocamllib, everything works. However it is rather a dirty trick, as I have to re-run the shell script whenever I install a new OCaml library. Now if have anyone here has found a clean way of dealing with OCaml libraries not installed as root, I would be glad to hear it. Is it possible to create my own ld.conf? How does it work? If you want the scripts, just mail me. -- fabrice bauzac Software should be free. http://www.gnu.org/philosophy/why-free.html