From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA00258; Mon, 20 Oct 2003 15:52:21 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA18764 for ; Mon, 20 Oct 2003 15:52:19 +0200 (MET DST) Received: from glow.phpwebhosting.com (Hosting-132-76.PHPWebHosting.Com [64.72.132.76] (may be forged)) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id h9KDqI120487 for ; Mon, 20 Oct 2003 15:52:18 +0200 (MET DST) Received: (qmail 607 invoked from network); 20 Oct 2003 13:52:15 -0000 Received: from unknown (HELO sparky) (24.163.168.219) by hosting-132-76.phpwebhosting.com with SMTP; 20 Oct 2003 13:52:15 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Tom Hawkins Organization: Launchbird Design Systems, Inc. To: Xavier Leroy Subject: Re: [Caml-list] Can't find Pervasives.cmi (3.07, MinGW, Win2000) Date: Mon, 20 Oct 2003 09:03:26 -0500 User-Agent: KMail/1.4.3 Cc: caml-list@pauillac.inria.fr References: <200310181229.49542.tom@launchbird.com> <20031020150751.A13138@pauillac.inria.fr> In-Reply-To: <20031020150751.A13138@pauillac.inria.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200310200903.26420.tom@launchbird.com> X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 pervasives:01 mingw:01 3.07:01 mingw:01 ocamlc:01 cygwin:01 pervasives:01 ocamlc:01 ocamllib:01 cygdrive:01 -nostdlib:01 -nostdlib:01 cygdrive:01 cygwin:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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=20 distribution to C:\ocaml and tried setting OCAMLLIB to "C:\ocaml\lib"=20 and "/cygdrive/c/ocaml/lib" -- both verified with ocamlc -v, but=20 still no luck. I also tried the -nostdlib option while using -I to=20 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=20 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=20 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 --=20 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