Re: MLton on Windows

Matthew Fluet <[email protected]> Tue, 16 Apr 2013 17:08:07 -0400
Newsgroups gmane.comp.lang.ml.mlton.devel
Message-ID <CAMrhFL6paN-ViB6PuPfjcOTL9hiFEJqv8DkZj6YjhTSmmWs_2A@mail.gmail.com>
On Mon, Apr 15, 2013 at 4:33 PM, Karl Crary <[email protected]> wrote:

> Are there directions for installing MLton on Windows?  The Windows
> installer (MLton-20100608-1.exe) doesn't work, at least not for me.
>
> When I try to run it, I get:
>
> $ /c/mlton/bin/mlton
> /c/mlton/bin/mlton: line 9: /lib/mlton/platform: No such file or directory
> Unable to run MLton.  Check that lib is set properly.
>
> So then I edit .../bin/mlton to set lib to /c/mlton/lib/mlton and I get a
> different error:
>
> unhandled exception: Path
>
> That leaves me with nothing to go on, so I give up.  Any advice?


Karl,

I'm cc-ing the mlton-devel list, since I'm afraid that I've never worked
seriously with the MinGW Windows stuff.  But, I thought that the Windows
installer didn't require any additional tweaking after installation.

You might try setting lib to "C:/mlton/lib/mlton"; as I understand it, the
MinGW port of MLton, as a windows executable, only understands Windows
paths.  While you might be in in a MSYS shell that shows unix-style paths,
the shell is actually translating the unix-style path to a Windows-path for
commands.  But, it may be that within the bin/mlton script, its escaped
enough to not be translated.

-Matthew

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

_______________________________________________
MLton-devel mailing list
[email protected]; [email protected]
https://lists.sourceforge.net/lists/listinfo/mlton-devel