idn2.h:没有这样的文件或目录 [英] idn2.h: No such file or directory
问题描述
我使用的是64位Centos 6.6,并且想要安装libidn2-devel。我试过 yum install libidn2-devel
,但没有用。我尝试从Internet上的各个网站下载rpm(手动解决递归依赖项!)
I am on 64-bit Centos 6.6 and want to install libidn2-devel. I tried yum install libidn2-devel
and that didn't work. I tried downloading rpms from various websites from Internet(resolving recursive dependencies manually!)
(不是这样)不久,我陷入了其中一个依赖项
(Not so) Soon I stuck at the one of the dependencies
libidn2.so.0()(64bit) is needed by libidn2-devel-0.10-1.sdl7.x86_64
在Internet上我找不到任何地方(对于CentOS)。
which I could not find anywhere on the Internet (for CentOS).
最终,我下载了源文件并尝试构建它。
Eventually, I downloaded the source and tried to build it.
wget -c ftp://alpha.gnu.org/gnu/libidn/libidn2-0.10.tar.gz
tar -xvzf libidn2-0.10.tar.gz
./configure
make
成功!
但是,当我使用它运行模块时,它会给我
However, when I used it to run a module, it gives me
error: idn2.h: No such file or directory
<idn2_variable> was not declared in this scope
PS:RPM似乎奇怪的
PS : RPM seems weird
$ rpm -q libidn2-devel
package libidn2-devel is not installed
$ rpm -q libidn2
libidn2-2.0.4-1.el6.x86_64
推荐答案
libidn2-devel
通过 EPEL回购
Name : libidn2-devel
Arch : x86_64
Version : 2.0.4
Release : 1.el6
Size : 54 k
Repo : epel
Summary : Development files for libidn2
URL : https://www.gnu.org/software/libidn/#libidn2
License : (GPLv2+ or LGPLv3+) and GPLv3+
Description : The libidn2-devel package contains libraries and header files for
: developing applications that use libidn2.
Wiki页面此处将为您提供更多详细信息,如果您要安装EPEL与 yum
一起使用,则应下载(并安装) 此 rpm
到您的系统,然后在 /etc/yum.repos.d/epel.repo
中签入它将离开的配置文件。在其中,您需要检查 [EPEL]
部分的行 enabled = 1
(我认为默认情况下已禁用)
The wiki page here will give you some more details, and if you want to install EPEL for use with yum
then you should download (and install) this rpm
to your system then check in /etc/yum.repos.d/epel.repo
for the config file it will leave. Inside there you need to check the [EPEL]
section has the line enabled=1
(I think its disabled by default)
您可能希望/需要清理尝试手动安装的内容,以便避免更新等问题。
You may want/need to clean up the stuff you have tried to manually install though so you avoid any problems with updates etc.
这篇关于idn2.h:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!