<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/10/6afdbec358fbd0e79622f6ad568aefb6"
  from="Tom Hawkins &lt;tom@l...&gt;"
  author="Tom Hawkins"
  date="2003-10-20T13:52:21"
  subject="Re: [Caml-list] Can&apos;t find Pervasives.cmi (3.07, MinGW, Win2000)"
  prev="2003/10/ae21027a037cf89c74ed354226a8cb16"
  next="2003/10/b0ef38abddedf527c495f2a7f50b3dc8"
  prev-in-thread="2003/10/8392a5b874cf031f5f7a7abec5ad1ee5"
  prev-thread="2003/10/221b156fe02eecb4e025b96c11a623ae"
  next-thread="2003/10/83b1785c43d9239196a8487692d809eb"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Can&apos;t find Pervasives.cmi (3.07, MinGW, Win2000)">
<msg 
  url="2003/10/17bc62c90007181f0de2c5f10ef09f44"
  from="Tom Hawkins &lt;tom@l...&gt;"
  author="Tom Hawkins"
  date="2003-10-18T17:18:44"
  subject="[Caml-list] Can&apos;t find Pervasives.cmi (3.07, MinGW, Win2000)">
<msg 
  url="2003/10/c267331267e2ac66bd3eae85b60b1ca2"
  from="Alan Schmitt &lt;alan.schmitt@p...&gt;"
  author="Alan Schmitt"
  date="2003-10-19T14:41:21"
  subject="Re: [Caml-list] Can&apos;t find Pervasives.cmi (3.07, MinGW, Win2000)">
<msg 
  url="2003/10/5f7e70fffd887eb470f4e9e5b239fcd9"
  from="Tom Hawkins &lt;tom@l...&gt;"
  author="Tom Hawkins"
  date="2003-10-19T15:28:23"
  subject="Re: [Caml-list] Can&apos;t find Pervasives.cmi (3.07, MinGW, Win2000)">
<msg 
  url="2003/10/599971c2cd95de0d26aeb1c731722f6d"
  from="Alan Schmitt &lt;alan.schmitt@p...&gt;"
  author="Alan Schmitt"
  date="2003-10-19T23:04:49"
  subject="Re: [Caml-list] Can&apos;t find Pervasives.cmi (3.07, MinGW, Win2000)">
</msg>
<msg 
  url="2003/10/f83ff7dc9c12ab8e33bdcab7932acc37"
  from="Jason Hickey &lt;jyh@c...&gt;"
  author="Jason Hickey"
  date="2003-10-19T23:54:50"
  subject="Re: [Caml-list] Can&apos;t find Pervasives.cmi (3.07, MinGW, Win2000)">
</msg>
</msg>
</msg>
<msg 
  url="2003/10/8392a5b874cf031f5f7a7abec5ad1ee5"
  from="Xavier Leroy &lt;xleroy@p...&gt;"
  author="Xavier Leroy"
  date="2003-10-20T13:07:52"
  subject="Re: [Caml-list] Can&apos;t find Pervasives.cmi (3.07, MinGW, Win2000)">
<msg 
  url="2003/10/6afdbec358fbd0e79622f6ad568aefb6"
  from="Tom Hawkins &lt;tom@l...&gt;"
  author="Tom Hawkins"
  date="2003-10-20T13:52:21"
  subject="Re: [Caml-list] Can&apos;t find Pervasives.cmi (3.07, MinGW, Win2000)">
</msg>
</msg>
</msg>
</thread>

<contents>
On Monday 20 October 2003 08:07 am, Xavier Leroy wrote:
&gt; &gt; I'm having difficulty getting 3.07 working on a Win 2000 box with
&gt; &gt; the MinGW tool chain.  When I try ocamlc.opt from either a Cygwin
&gt; &gt; shell or a windows shell I get:
&gt; &gt;
&gt; &gt;   Fatal error: can not open pervasives.cmi
&gt;
&gt; One suggestion: "ocamlc -v" will print the path to the standard
&gt; library where ocamlc looks for pervasives.cmi and other interfaces,
&gt; 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

&gt;
&gt; &gt; I've tried playing with the OCAMLLIB environment variable, but no
&gt; &gt; luck.  From what I gather from the docs, OCAMLLIB is only needed
&gt; &gt; for ME or 98, but I thought it was worth a shot.
&gt;
&gt; The OCAMLLIB environment variable is always honored.  However, the
&gt; installer knows how to set it to the correct value under Win NT, 2K
&gt; and XP.  Under 98 and ME, the installer does nothing to set the
&gt; variable and this must be done manually, e.g. via autoexec.bat.
&gt;
&gt; Hope this helps,
&gt;
&gt; - 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

</contents>

</message>

