出于某种原因,我的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"
更多推荐
发布评论