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


19

我正在尝试HPCC在基于RHEL的计算机上安装。

我有一个.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并自动安装其所有依赖项?


1
如果您将RHEL与debian进行比较,则apt-get成为yum,并且dpkg成为rpm
mveroone

Answers:



4

您可以创建本地yum存储库,然后运行命令

yum安装hpccsystems-platform_community-4.0.0-9.el6.x86_64.rpm

或找到可使用此软件包的在线存储库,然后将该URL放在.repo文件中的baseurl中。


1

您可以在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

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.