库“rt”和“dl”在西格温
也许这很愚蠢,但我无法找出必须在 Cygwin 中安装哪个软件包来修复以下丢失的库:
config.status: creating unix.buildinfo config.status: creating include/HsUnixConfig.h cabal.exe: Missing dependencies on foreign libraries: * Missing header file: HsUnix.h * Missing C libraries: rt, dl
任何想法或者当您收到文件 xxx 丢失的反馈时,您通常如何找出要安装的软件包(我记得在gentoo中这非常简单)...
Perhaps this is stupid but I'm unable to find out which package I have to install in Cygwin to fix the following missing libraries:
config.status: creating unix.buildinfo config.status: creating include/HsUnixConfig.h cabal.exe: Missing dependencies on foreign libraries: * Missing header file: HsUnix.h * Missing C libraries: rt, dl
Any ideas or how do you generally find out which package to install when you get feedback that file xxx is missing (I remember that in gentoo this was quite straightforward)...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我一直遇到这个问题,我刚刚发现了这个。
http://www.haskell.org/haskellwiki/Windows#Tools_for_compilation
I have been having this problem and I just found this.
http://www.haskell.org/haskellwiki/Windows#Tools_for_compilation
在“奇怪”的系统上,librt 和 libdl 是由 libc 直接提供的,我们无法直接链接到它们。
unix 库最近有一个补丁可以解决这个问题:
https://ghc.haskell.org/trac/ghc/ticket/8713
https://github.com/haskell/unix/pull/8
也就是说,这个可能不足以让您在 cygwin 上安装 UNIX - 多年来,它被认为只是“那么就不要这样做”的情况(即,如果您想在 Windows 上运行,将其移植为使用 Windows 库中的适当函数,如果您想同时使用两者,则使用 CPP)。
On "weird" systems, librt and libdl are provided by libc directly and we can't link to them directly.
There was a recent patch to the unix library that should address this:
https://ghc.haskell.org/trac/ghc/ticket/8713
https://github.com/haskell/unix/pull/8
That said, this may not be sufficient to let you install
unix
oncygwin
-- for years it was considered simply a case of "don't do that then" (i.e. if you want to run on windows, port it to use the appropriate functions from the windows libraries instead, and if you want to use both then use CPP).