2013-08-30 07:19:46 +0000 2013-08-30 07:19:46 +0000
19
19
Advertisement

如何安装rpm文件及其所有依赖关系?

Advertisement

我试图在基于RHEL的机器上安装HPCC

我有一个.rpm文件,为了安装这个rpm,我使用以下命令。

sudo rpm -Uvh hpccsystems-platform_community-4.0.0-9.el6.x86_64.rpm

我收到以下错误:

error: Failed dependencies:
        boost-regex is needed by hpccsystems-platform-community-4.0.09.x86_64
        expect is needed by hpccsystems-platform-community-4.0.09.x86_64
        gcc-c++ is needed by hpccsystems-platform-community-4.0.09.x86_64
        libapr-1.so.0()(64bit) is needed by hpccsystems-platform-community-4.0.09.x86_64
        libaprutil-1.so.0()(64bit) is needed by hpccsystems-platform-community-4.0.09.x86_64
        libarchive is needed by hpccsystems-platform-community-4.0.09.x86_64
        liblber-2.4.so.2()(64bit) is needed by hpccsystems-platform-community-4.0.09.x86_64
        libldap_r-2.4.so.2()(64bit) is needed by hpccsystems-platform-community-4.0.09.x86_64
        libssl.so.10()(64bit) is needed by hpccsystems-platform-community-4.0.09.x86_64
4.0.09.x86_64

请注意,这是我第一次使用RHEL。我曾使用过Ubuntu,在Ubuntu中,使用apt-get install命令安装软件更容易,该命令会获取软件及其依赖关系。

如何安装这个rpm并自动安装它的所有依赖关系?

Advertisement

答案 (3)

28
28
28
2013-08-30 07:25:51 +0000

](https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-yum.html)

yum localinstall ...

例如:

yum localinstall http://pkgs.repoforge.org/subversion/subversion-devel-1.7.1-0.1.el6.rfx.i686.rpm

上面的例子会自动安装rpm及其依赖关系。

4
4
4
2013-08-30 08:40:26 +0000

你可以在本地建立yum仓库,然后运行命令

yum install hpccsystems-platform_community-4.0.0-9.el6.x86_64.rpm

或者在网上找到有这个软件包的仓库,然后把url放到.repo文件的baseurl中。

1
Advertisement
1
1
2013-08-30 15:49:22 +0000

你可以在 RHEL 中启用 EPEL 仓库 - 使用 wget 下载 epel-release-6-8.noarch.rpm 软件包,然后使用 rpm 安装它:

wget http://download.fedoraproject.org/pub/epel/6/x86/_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm

然后,执行以下命令。

yum install gcc-c++ gcc make bison flex binutils-devel openldap-devel libicu-devel libxslt-devel libarchive-devel boost-devel openssl-devel apr-devel apr-util-devel

最后,安装 hpccsystems-platform 软件包:

rpm -Uvh hpccsystems-platform/community-4.0.0-9.el6.x86/64.rpm。

Advertisement
Advertisement