我使用的是 64 位 Centos 6.6,想要安装 libidn2-devel。我试过yum install libidn2-devel
但这不起作用。我尝试从互联网上的各个网站下载rpm(手动解决递归依赖关系!)
(不是这样)很快我就陷入了依赖项之一
libidn2.so.0()(64bit) is needed by libidn2-devel-0.10-1.sdl7.x86_64
我在互联网上找不到(对于 CentOS)。
最终我下载了source https://gitlab.com/libidn/libidn2并尝试建造它。
wget -c ftp://alpha.gnu.org/gnu/libidn/libidn2-0.10.tar.gz
tar -xvzf libidn2-0.10.tar.gz
./configure
make
Success!
但是,当我用它来运行模块时,它给了我
error: idn2.h: No such file or directory
<idn2_variable> was not declared in this scope
PS:转速看起来很奇怪
$ rpm -q libidn2-devel
package libidn2-devel is not installed
$ rpm -q libidn2
libidn2-2.0.4-1.el6.x86_64
libidn2-devel
是通过提供EPEL 仓库 https://download.fedoraproject.org/pub/epel/6/x86_64/
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.
维基页面here https://fedoraproject.org/wiki/EPEL将为您提供更多详细信息,如果您想安装 EPEL 以便与yum
那么你应该下载(并安装)this https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm rpm
到您的系统然后签入/etc/yum.repos.d/epel.repo
对于配置文件,它将保留。在里面你需要检查[EPEL]
部分有行enabled=1
(我认为默认情况下它是禁用的)
您可能想要/需要清理您尝试手动安装的内容,这样您就可以避免更新等方面的任何问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)