![使用“rpm -i”在 CentOS6 上安装软件包但出现依赖错误,即使我已经安装了依赖,为什么?](https://linux22.com/image/138621/%E4%BD%BF%E7%94%A8%E2%80%9Crpm%20-i%E2%80%9D%E5%9C%A8%20CentOS6%20%E4%B8%8A%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6%E5%8C%85%E4%BD%86%E5%87%BA%E7%8E%B0%E4%BE%9D%E8%B5%96%E9%94%99%E8%AF%AF%EF%BC%8C%E5%8D%B3%E4%BD%BF%E6%88%91%E5%B7%B2%E7%BB%8F%E5%AE%89%E8%A3%85%E4%BA%86%E4%BE%9D%E8%B5%96%EF%BC%8C%E4%B8%BA%E4%BB%80%E4%B9%88%EF%BC%9F.png)
操作系统 = CentOS 6
我正在尝试安装一个软件包,如下所示:
rpm -i package_name.rpm
但我收到以下错误:
error: Failed dependencies:
sqlite >= 3.7.15 is needed by package_name
但是,我已经安装了所需的依赖项,如下所示:
打开浏览器并导航至https://www.sqlite.org/download.html,下载 sqlite-autoconf-3240000.tar.gz 并解压文件:
然后:
cd sqlite-autoconf-3240000
./configure --prefix = /usr/local
./configure
make
make install
我验证 sqlite3 工作如下:
[root@MyMachine home]# sqlite3
SQLite version 3.24.0 2018-06-04 19:24:41
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite>
答案1
您已经安装了程序,不是依赖性。 package_name RPM 指定对 sqlite 的依赖关系转速,不是sqlite程序。
安装 sqlite RPM(删除手动安装的 RPM 后)或告诉 RPM 在安装 package_name: 时忽略依赖项rpm -i --nodeps package_name.rpm
。