Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
mostly static ocaml binaries
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-18 (16:48)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] mostly static ocaml binaries
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/ 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

  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.


Richard Jones
Red Hat