图书馆"rt"和"dl"表示在Cygwin [英] Libraries "rt" and "dl" in Cygwin

查看:43
本文介绍了图书馆"rt"和"dl"表示在Cygwin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许这很愚蠢,但我无法找出必须在Cygwin中安装哪个软件包才能修复以下缺少的库:

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

任何想法,或者在收到有关文件xxx丢失的反馈时通常如何找到要安装的软件包(我记得在gentoo中,这非常简单)...

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)...

推荐答案

在怪异"系统上,librt和libdl由libc直接提供,我们无法直接链接到它们.

On "weird" systems, librt and libdl are provided by libc directly and we can't link to them directly.

最近有一个针对unix库的补丁程序可以解决这个问题: https://ghc.haskell.org/trac/ghc/ticket/8713 https://github.com/haskell/unix/pull/8

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

也就是说,这可能不足以让您在 cygwin 上安装 unix –多年以来,人们一直认为这只是然后不这样做的一种情况"(即,如果您想在Windows上运行,请移植它以使用Windows库中的相应功能,如果要同时使用两者,请使用CPP.)

That said, this may not be sufficient to let you install unix on cygwin -- 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).

这篇关于图书馆"rt"和"dl"表示在Cygwin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆