If you don't use the compiler from the first-install location, you may be able to use DESTDIR ( https://www.gnu.org/prep/standards/html_node/DESTDIR.html ). But proper DESTDIR support was only added to the OCaml's build system for 4.02.0 (upon request of François Bérenger) so it would not work for 4.01.

On Wed, May 20, 2015 at 2:33 PM, Krishna <krishnarules@gmail.com> wrote:

Hi,


I am trying to run the OCaml compiler libraries, from a different path from which it is installed in (I copy the binaries from its installed location, to a different system with the same specs).


Someone else in my company, has done this for OCaml 3.10, by adding a shell script which exports OCAMLLIB to the current directory and calls ocamlrun. This shell script is called in the Makefile of stdlib, under camlheader camlheader_ur.


I have invested time to get this working for OCaml 4.02.1 and OCaml 4.01.0 to no avail. My question is, does anyone see more scope in this? That is, is it possible to get this done (with more effort), or is this a dead end?

 

Regards,
Krishna.