Re: Install problem

From: Xavier Leroy (Xavier.Leroy@inria.fr)
Date: Mon Nov 15 1999 - 18:28:27 MET


Date: Mon, 15 Nov 1999 18:28:27 +0100
From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Fabien FLEUTOT <fleutotf@esiee.fr>, caml-list@inria.fr
Subject: Re: Install problem
In-Reply-To: <382C6E80.7E4E6A31@esiee.fr>; from Fabien FLEUTOT on Fri, Nov 12, 1999 at 08:46:08PM +0100

> I made an unofficial install of ocaml on my user account (no way to get
> it installed by root...) Is there a way to force ocamlc to put
> '#!/user/fleutotf/pub/ocaml/bin/ocamlrun' as a first line in the
> executables it generates instead of '#!/usr/local/bin/ocamlrun' ?

As Alain Frisch said, the best thing to do is to recompile the sources
after configuring in the right path names:

./configure -bindir /user/fleutotf/pub/ocaml/bin \
            -libdir /user/fleutotf/pub/ocaml/lib \
            <other options>

Otherwise, a quick fix is to edit the file "camlheader" found in the
OCaml standard library directory. This file is copied verbatim at the
beginning of all bytecode executables generated by ocamlc. With the
default configuration, it contains

        #!/usr/local/bin/ocamlrun

and you can try putting instead

        #!/user/fleutotf/pub/ocaml/bin/ocamlrun

- Xavier Leroy



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:28 MET