caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gabriel Scherer <gabriel.scherer@gmail.com>
To: Kakadu <kakadu.hafanana@gmail.com>
Cc: Jonathan Protzenko <jonathan.protzenko@gmail.com>, caml-list@inria.fr
Subject: Re: [Caml-list] New version of the binary installer for Windows
Date: Thu, 29 Mar 2012 14:18:16 +0200	[thread overview]
Message-ID: <CAPFanBHeoN66Xj2wx2bz-mp-t97MDKR99OTPp=JzNMRoJDcSpg@mail.gmail.com> (raw)
In-Reply-To: <CAGmVoG3oegaZ11HyM-dFRQxwTkkcOcQ+2LF_6MoqnGiVdpf5QA@mail.gmail.com>

> 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 <kakadu.hafanana@gmail.com> 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
> <jonathan.protzenko@gmail.com> 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
>>> <jonathan.protzenko@gmail.com> 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
>


  reply	other threads:[~2012-03-29 12:19 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-28 12:24 Jonathan Protzenko
2012-03-28 14:55 ` Kakadu
2012-03-28 15:19   ` Jonathan Protzenko
2012-03-28 15:25     ` Wojciech Meyer
2012-03-28 15:38       ` Jonathan Protzenko
2012-03-28 15:54       ` David Allsopp
2012-03-28 16:04         ` Jonathan Protzenko
2012-03-28 17:36       ` Adrien
2012-03-28 20:42         ` Jonathan Protzenko
2012-03-29 11:55     ` Kakadu
2012-03-29 12:18       ` Gabriel Scherer [this message]
2012-03-29 12:19         ` Jonathan Protzenko
2012-03-29 12:27         ` Kakadu
2012-03-28 15:32   ` Jonathan Protzenko
2012-03-30 14:15 ` [Caml-list] " Jonathan Protzenko
2012-03-30 14:41   ` David Allsopp
2012-03-30 17:38   ` Kakadu
2012-04-03 12:32     ` Jonathan Protzenko
2012-03-31  9:34   ` Sylvain Le Gall
2012-04-02  8:03   ` Romain Bardou
2012-04-02  8:21     ` Alain Frisch
2012-04-02  8:23     ` David Allsopp
2012-04-02 11:14     ` Adrien
2012-04-02 11:39       ` Romain Bardou
2012-04-02 11:53       ` Jonathan Protzenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPFanBHeoN66Xj2wx2bz-mp-t97MDKR99OTPp=JzNMRoJDcSpg@mail.gmail.com' \
    --to=gabriel.scherer@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=jonathan.protzenko@gmail.com \
    --cc=kakadu.hafanana@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).