From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q2TCRufF022049 for ; Thu, 29 Mar 2012 14:27:57 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApkCAMFTdE/RVdK2kWdsb2JhbAAqGhanNJE7CCIBAQEBCQkNBxIpggkBAQEEEgIsARsSCwEDDAYFCw0NCBkhAQERAQUBChIGExIQh2gLKZxnCowWgnGFHT+IdgEFC4l6coJ4gzAEiFKFMIdfgRGKGwaDHT2EDoFP X-IronPort-AV: E=Sophos;i="4.73,668,1325458800"; d="scan'208";a="151788927" Received: from mail-iy0-f182.google.com ([209.85.210.182]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 29 Mar 2012 14:27:56 +0200 Received: by mail-iy0-f182.google.com with SMTP id k25so4800594iah.27 for ; Thu, 29 Mar 2012 05:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=9bQLdoprXXUVuvcbPpCWG8zAbwxBebtcuWCj79I4gr8=; b=qEqZ5FmNErdHF/ftVV52A1rVDWEB30BuB7tMY5BFEjSMb1vSNB59PigkPCQKempANf WyMnk6K4JA6CdTPrRfvpv/TY7EpE4t8m0nPf9UgLACM0xb/zicsALSVDDB5P/GUP9J0T lXJLf5vcdbbp+4GdmEqFujwFz10mKHsbox2zz3rNVDpaX/1QRAfQLNdw158OxIjriKNC L3WPYQpDkKNREd0fZ1osSHCDzHzkEpOp74p3pCibMTBx0CqLemoamHNhl1T2X8mj2YqL EgPYZVim3f1D3GRQUfx1f8NdHifXASdqC2GUzgihqrvh2H0wX5UZijv0mR8FqArcwxjl 5Jzw== MIME-Version: 1.0 Received: by 10.50.184.131 with SMTP id eu3mr1385250igc.13.1333024076139; Thu, 29 Mar 2012 05:27:56 -0700 (PDT) Received: by 10.42.57.77 with HTTP; Thu, 29 Mar 2012 05:27:56 -0700 (PDT) In-Reply-To: References: <4F730303.8000802@gmail.com> <4F732BFE.104@gmail.com> Date: Thu, 29 Mar 2012 16:27:56 +0400 Message-ID: From: Kakadu To: Gabriel Scherer Cc: Jonathan Protzenko , caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id q2TCRufF022049 Subject: Re: [Caml-list] New version of the binary installer for Windows I've guessed that putting OCaml to C:\OCaml fix the problem. I've wanted just report Jonathan that maybe better change default installation path. Best wishes, Kakadu On Thu, Mar 29, 2012 at 4:18 PM, Gabriel Scherer wrote: >> P.S. >> Btw, If I install OCaml to Program Files and call `ocaml setup.ml >> -someoption` in cmd  everything fails because ocamlbuild is not found >> (space in the path). > > That may be an issue with oasis (the tool that produced this setup.ml > file) rather than the presently discussed installer. Filename space > escaping is considered tricky by some third-party tools developper, > and I remember hearing the advice to simply put any > programming-oriented program in a path with no spaces. It's of course > a good thing that you detect and report space-related bugs to the ton > of third-party tools that choke on them, but you may have an easier > route just moving your installation(s) to a Prog\ directory, with no > spaces. > > On Thu, Mar 29, 2012 at 1:55 PM, Kakadu wrote: >> I've understanded problem. My bash was misconfigured. >> >> >> Best wishes, >> Kakadu >> >> P.S. >> Btw, If I install OCaml to Program Files and call `ocaml setup.ml >> -someoption` in cmd  everything fails because ocamlbuild is not found >> (space in the path). >> >> On Wed, Mar 28, 2012 at 7:19 PM, Jonathan Protzenko >> wrote: >>> Unfortunately, ocamlbuild requires a unix-like environment, with a few >>> utilities in the path: bash, mkdir... >>> >>> The installer only provides the very basics. It does not provide a unix >>> environment on windows, only the ocaml binaries, flexlink, and ocamlfind. If >>> you want to go further, e.g. use ocamlbuild, or benefit from native >>> compilation, you need to install a development environment, such as cygwin, >>> or msys. Currently, because of bug 5465, cygwin is the recommended way. >>> >>> I've successfully used ocamlbuild under cygwin and msys, and it works fine. >>> >>> Cheers, >>> >>> jonathan >>> >>> >>> On Wed 28 Mar 2012 04:55:25 PM CEST, Kakadu wrote: >>>> >>>> Hello! >>>> >>>> Can you test ocamlbuild on windows? On my vertual machine with XP it >>>> can't create _build directory and says >>>> >>>> C:\prog\1>ocamlbuild main.byte >>>> mkdir "C:\prog\1\_build" >>>> bash: warning: could not find /tmp, please create! >>>> bash: mkdir: command not found >>>> Failure: Error during command `mkdir "C:\prog\1\_build"'. >>>> Exit code 127. >>>> >>>> Best wishes, >>>> Kakadu >>>> >>>> On Wed, Mar 28, 2012 at 4:24 PM, Jonathan Protzenko >>>> wrote: >>>>> >>>>> Hi, >>>>> >>>>> I've spent the past few days improving the OCaml installer for windows. >>>>> This >>>>> should solve all issues that have been mentioned previously. This in >>>>> preparation for the upcoming 4.0 release ; therefore, the "beta >>>>> installer" >>>>> below will install a fairly recent trunk version of OCaml. >>>>> >>>>> >>>>> http://yquem.inria.fr/~protzenk/caml-installer/ocaml-4.01.0+dev0-i686-mingw64.exe >>>>> >>>>> Changelog: >>>>> >>>>> - The installer packages a working and well-configured findlib, out of >>>>> the >>>>> box. This means you can open up cmd.exe, type ocaml, then type #use >>>>> "topfind";; in the top-level. >>>>> - The installer no longer blasts the PATH variable if it is too long. >>>>> Moreover, it is now able to deal with PATHs that are up to 8192 bytes >>>>> long. >>>>> - The installer is now able to deal with multi-user privileges: in >>>>> particular, you can use this installer on a limited account: OCaml will >>>>> properly install into your local "Application Data" folder if you don't >>>>> have >>>>> administrator rights on your machine. This should be particularly useful >>>>> for >>>>> school computers that run Windows. >>>>> - Various fixes: better cleanups on exit, minor fixes for OCamlWinPlus, >>>>> properly warn the user if it was unable to download ActiveTCL from the >>>>> internet. >>>>> - The installer packages a newer version of flexlink, so you shouldn't >>>>> have >>>>> any more issues with gcc not accepting the -mno-cygwin option. However, >>>>> the >>>>> new, official toolchain uses the mingw64 32-bit compilers. This means >>>>> flexlink will look for a i686-w64-mingw32-gcc in your path whenever you >>>>> try >>>>> to do native compilation. The official, recommended way to work is to >>>>> install cygwin and its mingw64 packages. While in theory it should be >>>>> possible to work within a MSys environment, some issues [1] currently >>>>> prevent you from doing so. >>>>> >>>>> [1] http://caml.inria.fr/mantis/view.php?id=5465 >>>>> >>>>> Please let me know if anything doesn't work as expected. This will be the >>>>> official installer for the 4.0 release. >>>>> >>>>> Cheers, >>>>> >>>>> jonathan >> >> -- >> Caml-list mailing list.  Subscription management and archives: >> https://sympa-roc.inria.fr/wws/info/caml-list >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs >>