From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 984087EE7D for ; Wed, 20 May 2015 14:42:12 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of gabriel.scherer@gmail.com) identity=pra; client-ip=209.85.213.170; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of gabriel.scherer@gmail.com designates 209.85.213.170 as permitted sender) identity=mailfrom; client-ip=209.85.213.170; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ig0-f170.google.com) identity=helo; client-ip=209.85.213.170; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="postmaster@mail-ig0-f170.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CzAQB/gFxVm6rVVdFcg2ReBoMYwV0JgVqFdwKBMgc4FAEBAQEBAQERAQEBAQEGCwsJIS6EIwEBAwESER0BGx0BAwELBgUEBzcCAiEBAREBBQEcBhMih3QBAwoIDZwHPjGLPoFrgnmZXwoZJw1XhCsBAQEBAQEBAwEBAQEBAQEBARMBAQQOiyyCTYI0BAeCaIFFBZwagVaQGIUyEiOBDAmEHTwxAYJGAQEB X-IPAS-Result: A0CzAQB/gFxVm6rVVdFcg2ReBoMYwV0JgVqFdwKBMgc4FAEBAQEBAQERAQEBAQEGCwsJIS6EIwEBAwESER0BGx0BAwELBgUEBzcCAiEBAREBBQEcBhMih3QBAwoIDZwHPjGLPoFrgnmZXwoZJw1XhCsBAQEBAQEBAwEBAQEBAQEBARMBAQQOiyyCTYI0BAeCaIFFBZwagVaQGIUyEiOBDAmEHTwxAYJGAQEB X-IronPort-AV: E=Sophos;i="5.13,464,1427752800"; d="scan'208";a="151798857" Received: from mail-ig0-f170.google.com ([209.85.213.170]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 20 May 2015 14:42:11 +0200 Received: by igbpi8 with SMTP id pi8so101002900igb.1 for ; Wed, 20 May 2015 05:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=W7Uj907RK/QWvrI/SZln/h2SE7iAeU31khdRna3Z62Q=; b=zI1dcDeFsVhUHiFXOFbjyBqE8TqEfkqAgp2uwQpPzPZw9lbpeJU1e2UTuYzLBgrOsO 9gwW9sz8xAKvQOsdfSXN4j4goAEzc2NSRx5bXDOhPRPGQRlwHLgMEgW/fvxtFIqmcget 2EsC73TL/RcsmIsmkongA0IMwmcB3SyXMTBxeNxyMJ6BSmh3pvRNnY4yPQZI88Th+sEF GS5OCWGlqgJBA3Be7OkqbJNBux1ol2ZNQNwPRE672t8rd41XtxraZBeu0K5be/v+V4H5 1MNYbq6tr4BQoGeKXla80r/cJRZ/1Yz0IuopBkTzNb/+0ZiafBHGIQdxnK4MJnfCPmmZ 3KvQ== X-Received: by 10.50.112.73 with SMTP id io9mr28238313igb.18.1432125730933; Wed, 20 May 2015 05:42:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.70.4 with HTTP; Wed, 20 May 2015 05:41:30 -0700 (PDT) In-Reply-To: References: From: Gabriel Scherer Date: Wed, 20 May 2015 14:41:30 +0200 Message-ID: To: Krishna Cc: caml users Content-Type: multipart/alternative; boundary=047d7b3a9c12774f52051682c167 Subject: Re: [Caml-list] Running OCaml binaries compiled in another computer --047d7b3a9c12774f52051682c167 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=C3=A7ois B=C3=A9renger) so it would not work for 4.01. On Wed, May 20, 2015 at 2:33 PM, Krishna 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. > --047d7b3a9c12774f52051682c167 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
If you don't use the compiler from the first-install l= ocation, you may be able to use DESTDIR ( https://www.gnu.org/prep/standards/htm= l_node/DESTDIR.html ). But proper DESTDIR support was only added to the= OCaml's build system for 4.02.0 (upon request of Fran=C3=A7ois B=C3=A9= 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, fro= m 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 c= alls 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 th= is a dead end?

=C2=A0

Regards,
Krishna.


--047d7b3a9c12774f52051682c167--