Unable to install git in redhat linux server - linux

While installing git in redhat linux it asked for few dependencies for installation of git.
i downloaded them nut while installing it throughs below error.
[root#sudhakar ~]# rpm -ivh git-1.7.1-2.el6_0.1.x86_64.rpm
warning: git-1.7.1-2.el6_0.1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
error: Failed dependencies:
perl(Git) is needed by git-1.7.1-2.el6_0.1.x86_64
perl-Git = 1.7.1-2.el6_0.1 is needed by git-1.7.1-2.el6_0.1.x86_64
[root#sudhakar ~]# rpm -ivh perl-Git-1.7.1-2.el6_0.1.noarch.rpm
warning: perl-Git-1.7.1-2.el6_0.1.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
error: Failed dependencies:
git = 1.7.1-2.el6_0.1 is needed by perl-Git-1.7.1-2.el6_0.1.noarch
Whereas i have downloaded both the packages required here, but unable to install any of them.

Use yum localinstall git-1.7.1-2.el6_0.1.x86_64.rpm. It will automatically download the required dependencies if you have yum repositories configured.

Related

how to install amazon jdk on centos 7?

I am trying to install the rpm package java-1.8.0-amazon-corretto-devel-1.8.0_192.b12-1.amzn2.x86_64.rpm on centos 7 OS.
I have downloaded the rpm java-1.8.0-amazon-corretto-devel-1.8.0_192.b12-1.amzn2.x86_64.rpm from https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/downloads-list.html
When trying to install using the command
rpm -ivh java-1.8.0-amazon-corretto-devel-1.8.0_192.b12-1.amzn2.x86_64.rpm
I get the following error:
warning: java-1.8.0-amazon-corretto-devel-1.8.0_192.b12-1.amzn2.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID c87f5b1a: NOKEY
error: Failed dependencies:
java-1.8.0-amazon-corretto(x86-64) = 1:1.8.0_192.b12-1.amzn2 is needed by java-1.8.0-amazon-corretto-devel-1:1.8.0_192.b12-1.amzn2.x86_64
libX11.so.6()(64bit) is needed by java-1.8.0-amazon-corretto-devel-1:1.8.0_192.b12-1.amzn2.x86_64
libawt.so()(64bit) is needed by java-1.8.0-amazon-corretto-devel-1:1.8.0_192.b12-1.amzn2.x86_64
libawt_xawt.so()(64bit) is needed by java-1.8.0-amazon-corretto-devel-1:1.8.0_192.b12-1.amzn2.x86_64
libawt_xawt.so(SUNWprivate_1.1)(64bit) is needed by java-1.8.0-amazon-corretto-devel-1:1.8.0_192.b12-1.amzn2.x86_64
libjava.so()(64bit) is needed by java-1.8.0-amazon-corretto-devel-1:1.8.0_192.b12-1.amzn2.x86_64
libjvm.so()(64bit) is needed by java-1.8.0-amazon-corretto-devel-1:1.8.0_192.b12-1.amzn2.x86_64
Any idea how to download the rpm's that are required by java-1.8.0-amazon-corretto-devel-1.8.0_192.b12-1.amzn2.x86_64.rpm ? I tried with yumdownloader but it didn't work.
yumdownloader --destdir=. --resolve java-1.8.0-amazon-corretto-devel-1.8.0_192.b12-1.amzn2.x86_64.rpm
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
* base: ftp.heanet.ie
* extras: ftp.heanet.ie
* updates: ftp.heanet.ie
No Match for argument java-1.8.0-amazon-corretto-devel-1.8.0_192.b12-1.amzn2.x86_64.rpm
Nothing to download
Thank you
There are two packages, one providing the JDK and one providing the JRE. If you want the JDK, you'll also need to install the JRE.
Download both RPMs from Amazon Corretto's downloads page.
Install both simultaneously using yum localinstall:
sudo yum localinstall -y java-1.8.0-amazon-corretto*.rpm

Building apr-utils from Source on CentOS 7 -- dependancy issue

Im attempting to build apr-utils-1.6.1 from source on CentOS 7 (with the goal to get httpd-2.4.29) but I'm stuck with a dependancy issue:
# rpmbuild -tb apr-util-1.6.1.tar.bz2
error: Failed build dependencies:
db4-devel is needed by apr-util-1.6.1-1.x86_64
db4-devel isn't available in yum and libdb-devel provides version 5, which doesn't meet the dependency requirement.
I've tried downloading and installing db4-devel, but that has it's own dependencies that I can't meet:
# rpm -iv db4-devel-4.7.25-22.el6.x86_64.rpm
warning: db4-devel-4.7.25-22.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
db4 = 4.7.25-22.el6 is needed by db4-devel-4.7.25-22.el6.x86_64
db4-cxx = 4.7.25-22.el6 is needed by db4-devel-4.7.25-22.el6.x86_64
libdb-4.7.so()(64bit) is needed by db4-devel-4.7.25-22.el6.x86_64
libdb_cxx-4.7.so()(64bit) is needed by db4-devel-4.7.25-22.el6.x86_64
Trying to install db4 fails too because the the Berkely DB version 5 is already installed and in use on CentOS 7:
# rpm -iv db4-4.7.25-22.el6.x86_64.rpm
warning: db4-4.7.25-22.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
db4 < 5 is obsoleted by (installed) libdb-5.3.21-20.el7.x86_64
I'm not really sure how to proceed at this point. Do I just have to cut my losses and deploy a CentOS 6 box? It seems that CentOS 6 still has db4. I was thinking of modifying the spec file to remove the db4 requirement, but I'm not sure of the implications of that, or how to even do that properly.
Thanks.
rpmbuild -tb apr-util-1.6.1.tar.bz2
No spec file, but apr-util-1.6.1/build/rpm/apr-util.spec.in
Better use a source with a regular apr-util.spec file : apr-util-1.6.1-1.fc27.src.rpm http://dl.fedoraproject.org/pub/fedora/linux/updates/27/SRPMS/Packages/a/apr-util-1.6.1-1.fc27.src.rpm
Please do not build rpm packages as root, setup an unprivileged rpmbuild environment in /home/name/ : https://www.linuxquestions.org/questions/linux-software-2/need-rpm-package-for-php-version-5-2-7-and-up-on-redhat-5-1-a-766486/#13
Unpack the source with $ rpm -Uvh apr-util-1.6.1-1.fc27.src.rpm ... and $ cd rpms/SPECS/ ... edit 'apr-util.spec' to the new dependencies, and give it a try : $ rpmbuild -bb apr-util.spec
In Redhat release 7.5 is required to install the db4-devel package but it was replaced with libdb-devel. The below steps are necessary to create the packages for apr-util from the tar-ball file
yum install libdb-devel
rpmbuild -tb apr-util-1.6.1.tar.bz2
cd ~/rpmbuild
rm -rf BUILD BUILDROOT RPMS SRPMS
cp ../ apr-util-1.6.1.tar.bz2 SOURCES/
cd SPECS
vim apr-util.spec and replace db4-devel by libdb-devel
rpmbuild -bb apr-util.spec
cd ../RPMS/x86_64
All the packages for apr-util will be there.

I am facing issues while installing libsctp on redhat

I am trying to install libsctp on redhat. There is a chain of dependencies. How to install all libraries/dependencies in this group?
configure: error: --with-sctp given but cannot find libsctp [root#localhost libfixbuf-1.7.1]# cd ../Downloads/ [root#localhost Downloads]# rpm -ivh libsctp1-1.0.11-4-mdv2012.0.i586.rpm warning: libsctp1-1.0.11-4-mdv2012.0.i586.rpm: Header V3 DSA/SHA1 Signature, key ID 26752624: NOKEY Preparing... ########################################### [100%] package libsctp1-1.0.11-4.i586 is already installed [root#localhost Downloads]#
I am trying to install libfixbuf using ./configure --with-sctp The error thrown says that sctp is not installed. though it is installed
Solved the issue.. Installed lksctp-tools-1.0.16. That solved the problem
Solved the issue.. Installed lksctp-tools-1.0.16. That solved the problem

How to resolve libpcre.so.1()(64bit) dependency in amazon linux ami

When try to install maxscale, it ask libpcre. How to install libpcre
on linux?
rpm -ivh maxscale-1.4.3-1.rhel.7.x86_64.rpm
warning: maxscale-1.4.3-1.rhel.7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 8167ee24: NOKEY
error: Failed dependencies:
libpcre.so.1()(64bit) is needed by maxscale-1.4.3-1.x86_64
This worked for me:
yum install pcre2-devel.x86_64

Warning libstdc++-devel-4.4.4-13.el6.x86_64.rpm

im getting this error when trying to installing this rpm into the kernel server of 64bit.
The error is as the log below:
rpm -ivh libstdc++-devel-4.4.4-13.el6.x86_64.rpm
warning: libstdc++-devel-4.4.4-13.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
error: Failed dependencies:
libstdc++(x86-64) = 4.4.4-13.el6 is needed by libstdc++-devel-4.4.4-13.el6.x86_64
Any suggestions would be appreciated. Thanks..
You can only install a RPM after you have installed all its dependencies.
To install this RPM first you need to install libstdc++-4.4.4-13.el6.x86_64.rpm
You can do this in two ways .
Method 1 :
Download and install libstdc++-4.4.4-13.el6.x86_64.rpm first and then libstdc++-devel afterwards.
wget ftp://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/libstdc++-4.4.4-13.el6.x86_64.rpm
rpm -ivh libstdc++-4.4.4-13.el6.x86_64.rpm
rpm -ivh libstdc++-4.4.4-13.el6.x86_64.rpm
Method 2 :
You can use yum to automatically resolve and install dependencies for you
yum localinstall libstdc++-devel-4.4.4-13.el6.x86_64.rpm
If that doesn't work, try
yum install libstdc++-devel

Resources