gpt4 book ai didi

windows - 使用 Cabal、haskell origin 安装 unix-2.7.0.1 包

转载 作者:可可西里 更新时间:2023-11-01 14:36:01 25 4
gpt4 key购买 nike

这一切都始于 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?

最佳答案

根据 http://hackage.haskell.org/package/unix , unix 包,它提供了对 unix 系统库的绑定(bind),在 windows 下不被支持。

关于windows - 使用 Cabal、haskell origin 安装 unix-2.7.0.1 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23833912/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com