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: 2003-10-20 (13:07)
From: Xavier Leroy <xleroy@p...>
Subject: Re: [Caml-list] Can't find Pervasives.cmi (3.07, MinGW, Win2000)
> 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

One suggestion: "ocamlc -v" will print the path to the standard library
where ocamlc looks for pervasives.cmi and other interfaces, so you can
use this for troubleshooting.

> 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.

The OCAMLLIB environment variable is always honored.  However, the
installer knows how to set it to the correct value under Win NT, 2K
and XP.  Under 98 and ME, the installer does nothing to set the
variable and this must be done manually, e.g. via autoexec.bat.

Hope this helps,

- Xavier Leroy

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