在 centos (8) 里想要安装某些软件,经历了很多波折。即便添加了 rpmfusion epel 等源仍然提示缺少某些依赖。
废话不多说,直接献上我的解决方法。
1. pdfgrep 这是一款能够直接在命令行搜索 pdf 文件内容的程序。
安装提示:
- nothing provides libpoppler-cpp.so.0()(64bit) needed by pdfgrep-2.1.2-2.el8.x86_64
相应的解决办法是安装 poppler-cpp
sudo dnf --enablerepo=PowerTools install poppler-cpp
sudo dnf install pdfgrep
2.smplayer 直接安装也是提示缺少某些库
安装提示:
- nothing provides libenca.so.0()(64bit) needed by mplayer-1.4-3.el8.x86_64
- nothing provides libSDL2-2.0.so.0()(64bit) needed by mpv-0.32.0-2.el8.x86_64
相应的解决办法是安装 enca,SDL2
sudo dnf --enablerepo=PowerTools install enca
sudo dnf --enablerepo=PowerTools install SDL2
sudo dnf install smplyer
现在告诉大家一个网址,如果什么库、程序找不到的,或者不知道怎么安装的(不限于 centos 系统),可以去下面这个网址搜搜看:
https://centos.pkgs.org/