首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用haskell原产地的Cabal安装unix-2.7.0.1软件包

使用haskell原产地的Cabal安装unix-2.7.0.1软件包
EN

Stack Overflow用户
提问于 2014-05-23 16:10:11
回答 1查看 697关注 0票数 4

一切都是从杂耍开始的。

我在我的Windows7机器上安装了“崇高3”的SublimeHaskell包,并收到警告说找不到hdevtools,或者类似的东西。所以我想我可以试着用Cabal安装那个软件包。

我已经安装了Cygwin,在我的道路上工作得很好。我尝试了一个cabal install hdevtools,我得到了一些可怕的东西:

代码语言:javascript
复制
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

..。(许多看上去不错的支票)

代码语言:javascript
复制
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。实际上,我最终得到的输出似乎完全相同,阴谋告诉我,unix-2.7.0.1根本不能建立在我的系统上。当我尝试通过下载.tar文件手动构建它,并在一个看似成功的runhaskell Setup configure之后用runhaskell Setup build配置/构建它时,我得到了同样的结果。

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-01-26 22:01:31

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23833912

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档