Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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/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