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] Can't find Pervasives.cmi (3.07, MinGW, Win2000)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Tom Hawkins <tom@l...>
Subject: Re: [Caml-list] Can't find Pervasives.cmi (3.07, MinGW, Win2000)
On Sunday 19 October 2003 09:41 am, Alan Schmitt wrote:
> * Tom Hawkins ( wrote:
> > I'm having difficulty getting 3.07 working on a Win 2000 box with
> > the MinGW tool chain.  When I try ocamlc.opt from either a Cygwin
> > shell or a windows shell I get:
> >
> >   Fatal error: can not open pervasives.cmi
> >
> > I've tried playing with the OCAMLLIB environment variable, but no
> > luck.  From what I gather from the docs, OCAMLLIB is only needed
> > for ME or 98, but I thought it was worth a shot.
> >
> > BTW, the interactive OCaml works just fine.
> >
> > This is my first time trying to compile native Win32 executables.
> > Till now I've only used the pure Cygwin-based port.
> >
> > Any suggestions?
> I've had similar problems, and it seems that a solution is to root
> your install directory (where the bin and lib are going to go)
> outside of the cygwin directory (like to c:\ocaml, for instance).
> It seems that the path that is put in the ocaml executable does not
> make sense from a non-cygwin point of view (but this is just a
> guess).

I let it pick the default directory, "C:\Program Files\Objective 
Caml\", and then I set OCAMLLIB to values such as:
/cygdrive/c/Program\ Files/Objective\ Caml/

Again, I'm unclear if OCAMLLIB is needed with win2000.

I don't think it's a Cygwin directory path problem, because I get the 
same error when I run ocamlc from a windows command prompt. 


> HTH,
> Alan Schmitt

Tom Hawkins
Launchbird Design Systems, Inc.

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