Centos

使用 ‘rpm -i’ 在 CentOS6 上安裝軟體包,但出現依賴錯誤,即使我已經安裝了依賴,為什麼?

  • August 15, 2018

作業系統 = 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

引用自:https://unix.stackexchange.com/questions/462772