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
[Caml-list] Dynamically loaded library problems (ocaml-3.05)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-01 (16:02)
From: Sven LUTHER <luther@d...>
Subject: Re: [Caml-list] Dynamically loaded library problems (ocaml-3.05)
On Fri, Aug 02, 2002 at 01:03:20AM +1000, John Max Skaller wrote:
> Sven LUTHER wrote:
> >On Wed, Jul 31, 2002 at 01:08:20AM +1000, John Max Skaller wrote:
> >
> >>Can I suggest that the directory:
> >>
> >>  /usr/local/lib/ocaml_3.05/
> >>
> >>might be a better default name? In switching versions around, having to 
> >>reinstall
> >>
> >
> >Is this not configurable ? 
> >
> Note I said *default* name: i.e. make the default libraries install in 
> different places.

Well, you build with :

./configure -prefix /usr/local/ocaml/3.05 ...

and everything will go into the right place.

Then you can build with :

./configure -prefix /usr/local/ocaml/3.06 ...

for the next version, and :

ocamlc -where 

will show the right place, which most packages use to know where to
install stuff.

Then you only need to have s symlink like :

ln -s /usr/local/ocaml/3.05 /usr/local/ocaml/current

or something, and have /usr/local/ocaml/current/bin in your PATH, and
all will work as you want (unless i badly misunderstood you).

This has worked since the early times of caml-light (well no the prefix
option, but you could hand specify the libdir, bindir, etc ...).


Sven Luther
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: