操作系统 = 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
。