Yum安装不添加库文件(Yum installation not adding library files)

编程入门 行业动态 更新时间:2024-10-25 19:21:37
Yum安装不添加库文件(Yum installation not adding library files)

出于某种原因,我的yum安装程序不链接库文件。 例如,我试图包含在ac文件中,所以我运行sudo yum install c-ares。 一切都安装,但是当我运行程序时,我收到错误:

致命错误:ares.h:没有这样的文件或目录

当我尝试包含其他包时会发生同样的事情,例如

有关如何让这些库放在正确的位置的任何想法?

For some reason, my yum installer does not link library files. For example, I am trying to include in a c file, so I run sudo yum install c-ares. Everything installs, but when I run the program, I get the error:

fatal error: ares.h: No such file or directory

The same thing happens when I try to include other packages, such as

Any thoughts on how I can get yum to put these libraries in the right place?

最满意答案

通常有两个包 - 一个包含库,因此您可以运行现有程序,另一个包含用于包含名称为“-devel”的标题的开发。

所以在这种情况下你还需要安装“c-ares-devel”

There are usually two packages - one containing the library so you can run existing programs and another for development that contains the headers that has the name with "-devel" appended to it.

So in this case you need to also install "c-ares-devel"

更多推荐

本文发布于:2023-07-04 11:10:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1023617.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   installation   Yum   files   library

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!