我正在尝试安装rpm软件包,但是我无法安装rpm。

时间:2023-01-16 17:43:50

I'm using CentOS Linux release 6.0 (Final) but unable install given package

我使用CentOS Linux版本6.0 (Final),但无法安装给定的包。

1) rpm -ivh oracle-instantclient11.2-devel-11.2.0.1.0-1.x86_64.rpm

1)rpm -ivh oracle - instantclient11.2猛击11.2.0.1.0 x86_64.rpm——1.

Whenever i install package,I got following error

当我安装包时,我有以下错误。

error: Failed dependencies:
            oracle-instantclient11.2-basic >= 11.2.0.1.0 is needed by oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64

2)rpm -ivh oracle-instantclient11.2-devel-11.2.0.1.0-1.x86_64.rpm

2)rpm -ivh oracle - instantclient11.2猛击11.2.0.1.0 x86_64.rpm——1.

Whenever i install package,I got following error

当我安装包时,我有以下错误。

error: Failed dependencies:
        oracle-instantclient11.2-basic >= 11.2.0.1.0 is needed by oracle-instantclient11.2-devel-11.2.0.1.0-1.x86_64    

1 个解决方案

#1


3  

From the instant client information page:

从即时客户信息页:

Installation Instructions

安装说明

Installation Steps:

安装步骤:

  1. Download the appropriate Instant Client packages for your platform. All installations REQUIRE the Basic or Basic Lite package.
    ...
  2. 为您的平台下载适当的即时客户端包。所有安装都需要基本的或基本的Lite包。

That is referring to the .zip version, but the same will apply to the .rpm version.

这指的是.zip版本,但同样适用于.rpm版本。

So you need to get and install the oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.rpm or oracle-instantclient11.2-basiclite-11.2.0.1.0-1.x86_64.rpm (Basic Lite: Smaller version of the Basic, with only English error messages and Unicode, ASCII, and Western European character set support) before you can install the -devel- package on top.

因此,您需要获取和安装oracl -instantclient11.2-basic-11.2.0.1.0-1.x86_64。rpm或oracle - instantclient11.2 basiclite 11.2.0.1.0 - 1. - x86_64。rpm (Basic Lite:基本的小版本,只有英文错误消息和Unicode、ASCII和西欧字符集支持),然后才能在上面安装-devel- package。

Kind of curious that you're installing the 11.2.0.1 version (or 11.2.0.3 from your first error message, despite the command you showed) when more recent versions are available. I assume you're getting your .rpm files from the download site. I'd get the 11.2.0.4 version, if not the 12.0.0.1 version, unless you have a specific reason to stick to an older one. I would get the same version for basic and devel though, despite the message suggesting they don't have to match. So oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm (or basiclite) if you're sticking with oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64.rpm.

有点奇怪的是,当最近的版本可用时,您正在安装11.2.0.1版本(或11.2.0.3来自您的第一个错误消息,尽管您已经显示了这个命令)。我假设您从下载站点获得了.rpm文件。我将得到11.2.0.4版本,如果不是12.0.0.1版,除非你有一个特别的理由去坚持一个老版本。我将会得到相同版本的basic和devel,尽管有消息说他们不需要匹配。因此甲骨文instantclient11.2 -基本11.2.0.3.0 - 1. - x86_64。如果您坚持使用oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64.rpm,那么rpm(或basiclite)就可以了。

#1


3  

From the instant client information page:

从即时客户信息页:

Installation Instructions

安装说明

Installation Steps:

安装步骤:

  1. Download the appropriate Instant Client packages for your platform. All installations REQUIRE the Basic or Basic Lite package.
    ...
  2. 为您的平台下载适当的即时客户端包。所有安装都需要基本的或基本的Lite包。

That is referring to the .zip version, but the same will apply to the .rpm version.

这指的是.zip版本,但同样适用于.rpm版本。

So you need to get and install the oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.rpm or oracle-instantclient11.2-basiclite-11.2.0.1.0-1.x86_64.rpm (Basic Lite: Smaller version of the Basic, with only English error messages and Unicode, ASCII, and Western European character set support) before you can install the -devel- package on top.

因此,您需要获取和安装oracl -instantclient11.2-basic-11.2.0.1.0-1.x86_64。rpm或oracle - instantclient11.2 basiclite 11.2.0.1.0 - 1. - x86_64。rpm (Basic Lite:基本的小版本,只有英文错误消息和Unicode、ASCII和西欧字符集支持),然后才能在上面安装-devel- package。

Kind of curious that you're installing the 11.2.0.1 version (or 11.2.0.3 from your first error message, despite the command you showed) when more recent versions are available. I assume you're getting your .rpm files from the download site. I'd get the 11.2.0.4 version, if not the 12.0.0.1 version, unless you have a specific reason to stick to an older one. I would get the same version for basic and devel though, despite the message suggesting they don't have to match. So oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm (or basiclite) if you're sticking with oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64.rpm.

有点奇怪的是,当最近的版本可用时,您正在安装11.2.0.1版本(或11.2.0.3来自您的第一个错误消息,尽管您已经显示了这个命令)。我假设您从下载站点获得了.rpm文件。我将得到11.2.0.4版本,如果不是12.0.0.1版,除非你有一个特别的理由去坚持一个老版本。我将会得到相同版本的basic和devel,尽管有消息说他们不需要匹配。因此甲骨文instantclient11.2 -基本11.2.0.3.0 - 1. - x86_64。如果您坚持使用oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64.rpm,那么rpm(或basiclite)就可以了。