一切都始于hdevtools。
我在我的Windows 7计算机上安装了Sublime 3的SublimeHaskell软件包,并收到一条警告,说无法找到hdevtools,或者是这些内容。所以我想我可能会尝试使用Cabal来安装该软件包。
我安装了Cygwin并且在我的Path中工作正常。我尝试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吗?