简体   繁体   English

不使用mingw-get将mingwrt安装到haskell平台中

[英]Installing mingwrt into the haskell-platform without mingw-get

The haskell-platform (2014.2.0.0) ships MingGW, but without mingw-get. haskell平台(2014.2.0.0)发行了MingGW,但没有mingw-get。 However, to compile the setlocale bindings for haskell I need locale.h, which is part of mingwrt. 但是,要为haskell编译setlocale绑定,我需要locale.h,它是mingwrt的一部分。

In a usual mingw installation I would use mingw-get to install mingwrt, but since it's not included in the haskell-platform that doesn't work out of the box. 在通常的mingw安装中,我将使用mingw-get来安装mingwrt,但由于它没有包含在开箱即用的haskell平台中,因此无法安装。

What would be the usual way of installing mingwrt without mingw-get? 不使用mingw-get来安装mingwrt的通常方法是什么?

Install MSYS[^1] 安装MSYS [^ 1]

Download version 1.0.11 of MSYS. You'll need the following files:

MSYS-1.0.11.exe

msysDTK-1.0.1.exe

msysCORE-1.0.11-bin.tar.gz

The files are all hosted on haskell.org as they're quite hard to find in the official MinGW/MSYS repo

Run MSYS-1.0.11.exe followed by msysDTK-1.0.1.exe. The former asks you if you want to run a normalization step. You can skip that.

Unpack msysCORE-1.0.11-bin.tar.gz into D:\msys\1.0. Note that you can't do that using an MSYS shell, because you can't overwrite the files in use, so make a copy of D:\msys\1.0, unpack it there, and then rename the copy back to D:\msys\1.0.

[^1]: Setting up a Haskell development environment on Windows [^ 1]: 在Windows上设置Haskell开发环境

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM