Browse thread
[Caml-list] Can't find Pervasives.cmi (3.07, MinGW, Win2000)
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 Monday 20 October 2003 08:07 am, Xavier Leroy 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 > > 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. Suspecting a problem with spaces in path names, I reinstalled the distribution to C:\ocaml and tried setting OCAMLLIB to "C:\ocaml\lib" and "/cygdrive/c/ocaml/lib" -- both verified with ocamlc -v, but still no luck. I also tried the -nostdlib option while using -I to include the lib directory: $ ocamlc -nostdlib -I /cygdrive/c/ocaml/lib ... $ ocamlc -nostdlib -I C:\ocaml\lib ... Neither worked. I then tried a symbolic link to the lib directory: $ ln -s /cygdrive/c/ocaml/lib lib $ ocamlc -nostdlib -I lib ... Nope. What finally worked was copying the lib directory into the Cygwin environment: $ cp -r /cygdrive/c/ocaml/lib lib $ ocamlc -nostdlib -I lib ... I have no idea why this worked, but the symbolic link didn't. I guess that's windows for you. Thanks for your help. -Tom > > > 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 -- Tom Hawkins Launchbird Design Systems, Inc. 952-200-3790 http://www.launchbird.com/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners