操作系统 = 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>
您已经安装了程序,而不是依赖项。package_name RPM 指定了对 sqlite RPM的依赖,而不是 sqlite程序。
安装 sqlite RPM(在删除手动安装的之后)或告诉 RPM 在安装 package_name: 时忽略依赖项
rpm -i --nodeps package_name.rpm
。