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

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

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

Unable to install git in redhat linux server

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.

Rpm Installation Error, libstdc++-4.4.4-13.el6

Im trying to install this rpm "libstdc++-4.4.4-13.el6.x86_64"
But Im having this error:-
# rpm -ivh libstdc++-4.4.4-13.el6.x86_64.rpm
warning: libstdc++-4.4.4-13.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 1d1e034b: NOKEY
Preparing... ########################################### [100%]
package libstdc++-4.4.7-4.el6.x86_64 (which is newer than libstdc++-4.4.4-13.el6.x86_64) is already installed
file /usr/lib64/libstdc++.so.6.0.13 from install of libstdc++-4.4.4-13.el6.x86_64 conflicts with file from package libstdc++-4.4.7-4.el6.x86_64
Im also trying to install this rpm "libstdc++-4.4.7-4.el6.x86_64" as my previous attempt to install "libstdc++-4.4.4-13.el6.x86_64", but the method does not working.
I did try replace "rpm -ivh --replacefiles" command., in order to replace libstdc++-4.4.7-4.el6.x86_64 with libstdc++-4.4.7-4.el6.x86_64, as well with libstdc++-4.4.4-13.el6.x86_64 but the method is also does not working.
I also did try the sudo command, but still getting the similar situation. Any suggestions would be nice
Its alrite, I have got it figure out..
Just force installation the rpm using this command
rpm -ivh --old-package
rpm -ivh --force
Either should do.

How to install yum on centos

I removed /usr/bin/yum by mistake.
How to re install yum on centos6
Please help me ;(
I followed website explanation
but I got this error Failed dependencies: blah,blah
or yum-2.2.1-1.centos4.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID ###: NOKEY
ps. I try this
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
and rpm -ivH yum-3.2.29-60.el6.centos.noarch.rpm
then I got this error
Failed dependencies:
/usr/bin/python is needed by yum-3.2.29-60.el6.centos.noarch
python >= 2.4 is needed by yum-3.2.29-60.el6.centos.noarch
python(abi) = 2.6 is needed by yum-3.2.29-60.el6.centos.noarch
python-sqlite is needed by yum-3.2.29-60.el6.centos.noarch
so I copied old version yum
and This error what i got
-bash: /usr/bin/yum: /usr/bin/python2.6: bad interpreter: no such file or directory
(I upgraded python2.6 to python2.7)
Is aptitude or apt-get available on the machine?
apt-get install yum
Or have a look here:
http://openvz.org/Install_yum

xz compression install on centos

Any installation or update using yum command I ended up error: Error: xz compression not available. On website I read that Python library is missing. When you try to install a library (sudo yum update pyliblzma) again failed with error. Do not know how? Thanks.
This problem comes if you installed a wrong epel release on your machine. If so, then you need to remove the epel release by
yum remove epel-release
Sometimes that is not enough, you need to remove the cache as well by:
rm -rf /var/cache/yum/x86_64/6/epel
Then you can install the epel-release again
yum -y install epel-release
You need install the EPEL repository by downloading the appropriate RPM package for your system and installing it. For example, for CentOS and Red Hat Enterprise Linux 6.x:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -Uvh epel-release-6*.rpm
If you get a File Not Found error message when trying to download the package, the version number might have changed. You can access the latest version of the RPM installer from the Fedora EPEL wiki page. The wiki page also includes additional instructions for Red Hat Network subscribers who are installing the EPEL repository.
Finally, install the Python library:
yum install pyliblzma
This works perfecly in my CentOS 6.x.
I've found a solution on this page of stackexchange, working in CentOS 6.X:
https://unix.stackexchange.com/a/314756
sudo rpm -e epel-release-7-5.noarch
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -ivh epel-release-6-8.noarch.rpm
sudo yum clean all
sudo rpmdb -v --rebuilddb
sudo yum -y install libselinux-python
I was also suffering from this issue..
If you are installing packages but it is already available on your system.
Remove existing packages and then try to install new.
It will work properly...
I was able to solve this problem by installing pyliblzma using rpm instead of yum as yum is not working.
Find pyliblzma rpm package according to your architecture and install it using the command.
rpm -Uvh pyliblzma-version-release.architecture.rpm
I used the following command to install pyliblzma for my 64 bit Redhat 6.8 machine. Please check URL in the command and make changes accordingly.
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/pyliblzma-0.5.3-3.el6.x86_64.rpm
In my case the issue was caused by missing modules in python's site-packages directory. Here's what I did:
$ rpm -Va
to get a list of all files belonging to all rpms that do not verify. I got a bunch of messages about missing modules:
missing /usr/lib64/python2.7/site-packages/...
Luckily, I had an identical CentOS version elsewhere with all these packages present, so I just copied them over and ran
$ rpmdb -v --rebuilddb
to rebuild rpm database.

Resources