From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id A8567BCAF for ; Tue, 14 Jun 2005 02:29:08 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j5E0T5pK013483 for ; Tue, 14 Jun 2005 02:29:05 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA30364 for ; Tue, 14 Jun 2005 02:29:05 +0200 (MET DST) Received: from smtp1.wanadoo.fr (smtp1.wanadoo.fr [193.252.22.30]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j5E0T4hl000564 for ; Tue, 14 Jun 2005 02:29:05 +0200 Received: from me-wanadoo.net (unknown [127.0.0.1]) by mwinf0107.wanadoo.fr (SMTP Server) with ESMTP id CA5D4A000195 for ; Tue, 14 Jun 2005 02:29:04 +0200 (CEST) Received: from pegasos (AStrasbourg-251-1-75-78.w82-126.abo.wanadoo.fr [82.126.246.78]) by mwinf0107.wanadoo.fr (SMTP Server) with ESMTP id 9838BA00018C; Tue, 14 Jun 2005 02:29:04 +0200 (CEST) X-ME-UUID: 20050614002904623.9838BA00018C@mwinf0107.wanadoo.fr Received: from luther by pegasos with local (Exim 4.50) id 1DhzI0-0001h9-Lv; Tue, 14 Jun 2005 02:28:24 +0200 Date: Tue, 14 Jun 2005 02:28:24 +0200 To: Jacques Garrigue Cc: skaller@users.sourceforge.net, caml-list@inria.fr Subject: Re: [Caml-list] Caml on intel-OSX Message-ID: <20050614002824.GA6458@pegasos> References: <1118330851.8693.10.camel@rosella.wigram> <36973.131.254.50.45.1118334009.squirrel@mail.irisa.fr> <1118357500.8693.80.camel@rosella.wigram> <20050610.094151.133749660.garrigue@math.nagoya-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20050610.094151.133749660.garrigue@math.nagoya-u.ac.jp> User-Agent: Mutt/1.5.6+20040907i From: Sven Luther X-Miltered: at nez-perce with ID 42AE24D1.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42AE24D0.003 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 sven:01 luther:01 sven:01 luther:01 irisa:01 bytecode:01 bytecode:01 ocamlrun:01 hashtbl:01 bignums:01 ocaml:01 ocaml:01 compiler:01 ocamlrun:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: On Fri, Jun 10, 2005 at 09:41:51AM +0900, Jacques Garrigue wrote: > From: John Skaller > > On Thu, 2005-06-09 at 18:20 +0200, padiolea@irisa.fr wrote: > > > > > > Lol! no, it is a simple question. Can I make a bytecode program > > > > and just ship it an expect it to run? No. So what else is required? > > > > > > I guess that if your bytecode program require some external libraries, > > > such as for instance if you do a "open Dbm" then you must > > > have too this library. > > > I think that ocamlrun only include code to handle the Pervasive > > > library. > > > > The code uses only (a) the standard library (Hashtbl and so on), > > (b) the Unix library, and (c) Bignums. Therefore the bytecode > > only requires support to be found in the standard distribution. > > > > I have a suspicion that one needs to '-custom' link somehow, > > to make a suitable single bytecode interpreter. The desire > > here is to *avoid* building Ocaml from source on the > > target platform, instead to use pre-built binaries, > > or, at worst, build these binaries from source, > > excluding the full Ocaml toolkit -- the compiler isn't > > required since the program is already compiled > > to bytecode. > > In theory, it should be enough to have ocamlrun, and the dlls in > stublibs. > The an ocaml bytecode executable, linked _without_ -custom, could be > executed as: > $ setenv CAML_LD_LIBRARY_PATH /path/to/stublibs > $ ocamlrun myprogram > (Of course you need everything to be compiled from the same ocaml > distribution.) > > The problem is that there is no support to compile only bits and > pieces of the ocaml distribution. And there is little point to do Works fine with a binary distribution like debian though, we ship the ocamlrun and sublibs separatedly, and only those packages are needed to run a bytecode package using them. Friendly, Sven Luther