dnf:缺少库,但确实存在

dnf:缺少库,但确实存在

尝试libmediainfo安装dnf,出现错误缺少库确实存在

如何解决这个问题?

输出如下dnf

$ sudo dnf install -v libmediainfo --allowerasing
DNF version: 4.7.0
cachedir: /var/cache/dnf
User-Agent: constructed: 'libdnf (Rocky Linux 8.6; generic; Linux.x86_64)'
repo: using cache for: appstream
repo: using cache for: baseos
repo: using cache for: extras
repo: using cache for: epel
repo: using cache for: epel-modular
--> Starting dependency resolution
--> Finished dependency resolution
Error:
 Problem: conflicting requests
  - nothing provides libtinyxml2.so.6()(64bit)
      needed by libmediainfo-22.03-1.el8.x86_64

系统中安装了缺少的库:

$ ll /usr/lib64/libtiny*
    21 Aug 16  2019 libtinyxml.so -> libtinyxml.so.0.2.6.2
    21 Aug 16  2019 libtinyxml.so.0 -> libtinyxml.so.0.2.6.2
119272 Aug 16  2019 libtinyxml.so.0.2.6.2
    20 May 23  2014 libtinyxml2.so.2 -> libtinyxml2.so.2.1.0
 84816 May 23  2014 libtinyxml2.so.2.1.0
    20 Jun 28 11:22 libtinyxml2.so.6 -> libtinyxml2.so.2.1.0

附加信息

libtinyxml2.so手动安装的(libtinyxml2未找到dnf) 与

wget https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/t/tinyxml2-2.1.0-2.20140406git6ee53e7.el7.x86_64.rpm
sudo rpm -Uvh tinyxml2-2.1.0-2.20140406git6ee53e7.el7.x86_64.rpm
sudo ldconfig

重要的

ldconfig没有看到 libtinyxml2.so。6。可能是解决问题的线索。

$ ldconfig -p | grep tinyx
    libtinyxml2.so.2 (libc6,x86-64) => /lib64/libtinyxml2.so.2
    libtinyxml.so.0 (libc6,x86-64) => /lib64/libtinyxml.so.0
    libtinyxml.so (libc6,x86-64) => /lib64/libtinyxml.so

相关内容