From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 965A9BC0A for ; Fri, 18 May 2007 18:48:05 +0200 (CEST) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l4IGm4M4019956 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 18 May 2007 18:48:05 +0200 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1Hp5cT-0002m8-00; Fri, 18 May 2007 17:47:57 +0100 Date: Fri, 18 May 2007 17:47:57 +0100 To: Basile STARYNKEVITCH Cc: caml-list@inria.fr Subject: Re: [Caml-list] mostly static ocaml binaries Message-ID: <20070518164757.GA8265@furbychan.cocan.org> References: <464DCE27.9000705@starynkevitch.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <464DCE27.9000705@starynkevitch.net> User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at concorde with ID 464DD8C5.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 0200,:01 basile:01 ocaml:01 usr:01 lib:01 libpcre:01 wrote:01 binaries:01 binaries:01 caml-list:01 motivation:02 dynamic:03 writable:03 static:03 On Fri, May 18, 2007 at 06:02:47PM +0200, Basile STARYNKEVITCH wrote: > I would like to know how to make ocaml with mostly static binaries. > > My motivation is the following: I want to code some dynamic web site but > my small hosting company provide only a very basic linux system. In > particular even the /usr/lib/libpcre.so is not available. Just a thought, but how about keeping the shared libraries in (eg) your home directory or another writable place, and using $LD_LIBRARY_PATH to cause them to be loaded into the process. If this works then at least you won't need to change how OCaml binaries get built. LD_LIBRARY_PATH=$HOME/mylibs ./mywebapp (or if using CGI, try a wrapper script or Apache SetEnv). > Oh, did I forgot to tell that I hate PHP? It's horrible. Rich. -- Richard Jones Red Hat