How to install rpm file along with its all dependencies?

I'm trying to install HPCC on RHEL based machine.

I have one .rpm file and to install this rpm, I'm using following command:

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

I'm getting following error :

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

Please note that this is the first time I am using RHEL. I have used Ubuntu and in Ubuntu it was easier to install software using apt-get install command which fetches software along with its dependencies.

How to install this rpm and automatically install its all dependencies too?

1

3 Answers

Use yum instead.

yum localinstall ...

For example:

yum localinstall 

The example above will install the rpm and its dependencies automatically.

2

you may make local yum repository and then run command

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

or find the online repository where this package is available and then put the url in baseurl in .repo file.

You can enable the EPEL Repository in RHEL - download the epel-release-6-8.noarch.rpm package using wget and then install it using rpm:

wget rpm -ivh epel-release-6-8.noarch.rpm

Then, execute the following command:

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

Finally, install the hpccsystems-platform package:

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like