From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p3TIXVTU003996 for ; Fri, 29 Apr 2011 20:33:31 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArkCAAUDu03RVdivkGdsb2JhbACmCQgUAQEBAQkJDQcUBCGIcZ9FinyCJ4UeNIheAQEDBoV4BIYHiGGKNDuDMA X-IronPort-AV: E=Sophos;i="4.64,289,1301868000"; d="scan'208";a="82032214" Received: from mail-qy0-f175.google.com ([209.85.216.175]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 29 Apr 2011 20:33:18 +0200 Received: by qyk35 with SMTP id 35so494935qyk.6 for ; Fri, 29 Apr 2011 11:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=jACdAc35dW9n03SwsHStnuU8E1BhizF4PtvUkFPVG9A=; b=HRaF1w37tTsLEPmIULsp1pfHZq/2X72ZB76qB5hrD8SVAb3uq9XBguRbIo8ZGTp4D8 9ze+BQ2eKMBAIgy8w7hLr6S2fJiu4VOSEBUZT75v7V2vVS7GAhuAXlxElMs2vKtKdIBO WABqQLEgNrrShkhGMxgHDK2ckHa4uFm4e6+6Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=XchDsA7q29fUsZ+XigjDD73vyVJBU3uA56byvtOHiVCsYGsz42bGeht/HbvklaHkWg /FFBgIDbrHrwo0F27m7Y+Db+SMEJDGFkryCvy9kwDmSIDBEzpvWgUuPWHgpqmtQxsKAY eG6/59l1spgxXo0NubIWT4TQswKmWxx2OT1jI= MIME-Version: 1.0 Received: by 10.229.136.144 with SMTP id r16mr4150681qct.153.1304101997253; Fri, 29 Apr 2011 11:33:17 -0700 (PDT) Received: by 10.229.32.1 with HTTP; Fri, 29 Apr 2011 11:33:17 -0700 (PDT) In-Reply-To: <006401cc0695$f031efc0$d095cf40$@ffconsultancy.com> References: <006401cc0695$f031efc0$d095cf40$@ffconsultancy.com> Date: Fri, 29 Apr 2011 22:33:17 +0400 Message-ID: From: Dmitry Bely To: Caml List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Caml-list] Windows install On Fri, Apr 29, 2011 at 9:50 PM, Jon Harrop wrote: > I've been trying to install OCaml on Windows Vista using the OCaml 3.11.0 > binary (MSVC) install. I have Visual Studio 2010 installed which, I believe, > satisfies the dependencies but I keep getting linker errors. Curiously, > different errors each time I reinstall: I used to build Ocaml from sources on Windows (it's pretty straight-forward, just follow readme.win32 from Ocaml source distribution). As for the errors: > C:\Users\Jon\Documents\OCaml>ocamlopt test.ml -o test > ** Fatal error: Cannot find file "libws2_32" > File "caml_startup", line 1, characters 0-1: > Error: Error during linking Looks like you have installed the port based on the MinGW toolchain (instead of MSVC one). Take the right one from http://caml.inria.fr/download.en.html > C:\Users\Jon\Documents\OCaml>ocamlopt test.ml -o test > ** Fatal error: Cannot find file "C:\\Program Files\\Objective > Caml\\bin\\flexdl > l_msvc.obj" > File "caml_startup", line 1, characters 0-1: > Error: Error during linking Ocaml on Windows requires Alain Frisch's FlexDLL package. Grab it from http://alain.frisch.fr/flexdll.html > C:\Users\Jon\Documents\OCaml>ocamlopt test.ml -o test > 'flexlink' is not recognized as an internal or external command, > operable program or batch file. > File "caml_startup", line 1, characters 0-1: > Error: Error during linking FlexDLL is missing. > What's the easiest way to get a working OCaml install under Windows ATM? Again, I would recommend to build from sources. - Dmitry Bely