4

这一切都始于hdevtools。

我在我的 Windows 7 机器上安装了 Sublime 3 的 SublimeHaskell 包,并收到一条警告说找不到 hdevtools,或者类似的东西。所以我想我可能会尝试使用 Cabal 安装该软件包。

我已经安装了 Cygwin,并且在我的路径中工作正常。我尝试了cabal install hdevtools一些可怕的事情:

Resolving dependencies...
Configuring unix-2.7.0.1...
Warning: Unknown extensions: CApiFFI, InterruptibleFFI
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
cygwin warning:
  MS-DOS style path detected: C:\Users\Stas\AppData\Roaming\cabal/share/config.site
  Preferred POSIX equivalent is: /cygdrive/c/Users/Stas/AppData/Roaming/cabal/share/config.site
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
checking for gcc... gcc
checking whether the C compiler works... yes

...(许多检查似乎没问题)

checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking target system type... x86_64-unknown-cygwin
checking for library containing sem_close... no
configure: Not found
configure: creating ./config.status
config.status: creating unix.buildinfo
config.status: creating include/HsUnixConfig.h
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
cabal: Package unix-2.7.0.1 can't be built on this system.
Failed to install unix-2.7.0.1
cabal: Error: some packages failed to install:
hdevtools-0.1.0.5 depends on unix-2.7.0.1 which failed to install.
unix-2.7.0.1 failed during the building phase. The exception was:
ExitFailure 1

所以我想,也许我应该安装 unix-2.7.0.1 包。这里有一个cabal install unix-2.7.0.1. 实际上,我最终得到了似乎完全相同的输出,cabal 告诉我 unix-2.7.0.1 根本无法在我的系统上构建。当我尝试通过下载 .tar 文件手动构建它并runhaskell Setup build在看似成功后在解压缩目录中配置/构建它时,我得到了相同的结果runhaskell Setup configure

谁能告诉我为什么我不能在我的 Windows 7 机器上构建 unix-2.7.0.1?

4

1 回答 1

0

根据http://hackage.haskell.org/package/unix,提供与 unix 系统库绑定的 unix 包在 windows 下不受支持。

于 2018-01-26T22:01:31.963 回答