dependency check failure on oracle linux - linux

i am new on linux. i am using oracle linux... el5. i am trying to install oracle 11g.
i have to install some packets for pre-installation task. ex: compat-libstdc++-33-3.2.3
i downloaded the rpm file and tried to install but i got a dependency check failure.
i have a later version of glibc as it can be seen below. what should i do? sould i install ALL the dependencies even if i had a later version?
[root#localhost ferhat]# rpm -iv compat-libstdc++-33-3.2.3-61.x86_64.rpm
warning: compat-libstdc++-33-3.2.3-61.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
libc.so.6()(64bit) is needed by compat-libstdc++-33-3.2.3-61.x86_64
libc.so.6(GLIBC_2.2.5)(64bit) is needed by compat-libstdc++-33-3.2.3-61.x86_64
libc.so.6(GLIBC_2.3)(64bit) is needed by compat-libstdc++-33-3.2.3-61.x86_64
libgcc_s.so.1()(64bit) is needed by compat-libstdc++-33-3.2.3-61.x86_64
libgcc_s.so.1(GCC_3.0)(64bit) is needed by compat-libstdc++-33-3.2.3-61.x86_64
libgcc_s.so.1(GCC_3.3)(64bit) is needed by compat-libstdc++-33-3.2.3-61.x86_64
libm.so.6()(64bit) is needed by compat-libstdc++-33-3.2.3-61.x86_64
[root#localhost ferhat]#
[root#localhost ferhat]#
[root#localhost ferhat]# rpm -q glibc
glibc-2.5-49
[root#localhost ferhat]# rpm -q gcc
gcc-4.1.2-48.el5
Regards...

Use your package manager instead of pure RPM for installing. What is it in your distribution, yum?

Related

error while install rpm package:libssl.so.10 and libcrypto.so.10

I tried installing mysql-community-libs through yum with the following error:
[root#liaghost ~]# rpm -ivh mysql-community-libs-8.0.19-1.el7.x86_64.rpm
warning: mysql-community-libs-8.0.19-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
libcrypto.so.10()(64bit) is needed by mysql-community-libs-8.0.19-1.el7.x86_64
libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-libs-8.0.19-1.el7.x86_64
libssl.so.10()(64bit) is needed by mysql-community-libs-8.0.19-1.el7.x86_64
libssl.so.10(libssl.so.10)(64bit) is needed by mysql-community-libs-8.0.19-1.el7.x86_64
Then I checked and found that openssl was already installed:
[root#liaghost yum.repos.d]# ls /usr/lib64/ | grep -e ssl.so -e crypto.so
libcrypto.so
libcrypto.so.1.1
libcrypto.so.1.1.1c
libk5crypto.so
libk5crypto.so.3
libk5crypto.so.3.1
libssl.so
libssl.so.1.1
libssl.so.1.1.1c
[root#liaghost yum.repos.d]# openssl version
OpenSSL 1.1.1c FIPS 28 May 2019
Is this because I installed the wrong version of openssl?
suggest you to install compatibility package to older version of openssl
dnf install compat-openssl10
Looks like you installed openssl outside of RPM/YUM/DNF, so it doesn't know you have it. Reinstall it from RPMs.

How to uninstall RPM without dependencies error in cent os?

I installed the openssl rpm some long days ago. After that i am unable to uninstall the rpm so that i deleted the /usr/bin/openssl folder manually.Though I deleted it manually, when i grep using this command rpm -qa openssl i can find the rpm.
But when i execute the openssl command in terminal it is showing bash: openssl: command not found...
When try to uninstall i am getting following error
[root#genius ~]# rpm -qa openssl
openssl-1.0.2k-8.el7.x86_64
[root#genius ~]# rpm -e openssl-1.0.2k-8.el7.x86_64
error: Failed dependencies:
/usr/bin/openssl is needed by (installed) authconfig-6.2.8-30.el7.x86_64
And also when i am tryiong to install the rpm it is showing that following output
[root#genius openssl]# rpm -ivh openssl-1.0.2k-8.el7.x86_64.rpm
Preparing... ################################# [100%]
package openssl-1:1.0.2k-8.el7.x86_64 is **already installed**
Finally,
I need the openssl package should be installed in my centOS 7 or else i need to remove the openssl package completely without any dependencies error.
You have a couple of options here:
1. Remove using yum, Note: this may remove the dependency such as authconfig
$ yum remove openssl
2. Remove using rpm cmdline, but you have to force remove it. This will not remove the depencies
$ rpm -e openssl-1.0.2k-8.el7.x86_64 --nodeps
3. or try a reinstall if you have CentOS-7 repo
$ yum reinstall openssl
If you want openssl in your system, I would try (3) first. If that doesn't work, try (2) and then do a yum install openssl. (3) and (1) are the options to use. (2) will cause the dependency package to stay in the system and the dependent package may malfunction.

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

RPM installation on redhat 6.3 failed

I am trying to install unixODBC-2.2.14-11.el6.x86_64.rpm on redhat 6.3. It gives me the following output:
[root#localhost khan]# yum install unixODBC-2.2.14-11.el6.x86_64.rpm
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Repository InstallMedia is listed more than once in the configuration
Setting up Install Process
Examining unixODBC-2.2.14-11.el6.x86_64.rpm: unixODBC-2.2.14-11.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64.rpm: does not update installed package.
Error: Nothing to do
But when I try to query it by #rpm -q unixODBC-2.2.14-11.el6.x86_64.rpm,
it gives the output as:
package unixODBC-2.2.14-11.el6.x86_64.rpm is not installed
You are misusing the rpm command. With the -q option, rpm receives a package name, not a file name. Drop the .rpm from the end, and you should be OK:
$ rpm -q unixODBC-2.2.14-11.el6.x86_64

Resources