English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Install problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-11-16 (18:33)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: Install problem
> 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


and you can try putting instead


- Xavier Leroy