yum install complains about already installed dependency - installation

I mean to install a package that is apparently not available in my registered repos (see RedHat, which package provides hdf5.h).
So I downloaded hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686.rpm from rpmfind.net, and tried installing from file, obtaining complaints about some missing files (see (1) below).
But those files exist in my system (see (2) below).
How can I work around this issue to get a functional system?
This seems to deal with a related but different issue.
Test #1:
# yum install /shared/hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686.rpm
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Examining /shared/hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686.rpm: hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686
Marking /shared/hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package hdf5-openmpi-devel.i686 0:1.8.5.patch1-10.el6 will be installed
--> Processing Dependency: hdf5-openmpi(x86-32) = 1.8.5.patch1-10.el6 for package: hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686
--> Processing Dependency: libhdf5.so.6 for package: hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686
--> Processing Dependency: libhdf5_fortran.so.6 for package: hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686
--> Processing Dependency: libhdf5_hl.so.6 for package: hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686
--> Processing Dependency: libhdf5hl_fortran.so.6 for package: hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686
--> Finished Dependency Resolution
Error: Package: hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686 (/hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686)
Requires: libhdf5.so.6
Error: Package: hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686 (/hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686)
Requires: hdf5-openmpi(x86-32) = 1.8.5.patch1-10.el6
Error: Package: hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686 (/hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686)
Requires: libhdf5_fortran.so.6
Error: Package: hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686 (/hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686)
Requires: libhdf5_hl.so.6
Error: Package: hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686 (/hdf5-openmpi-devel-1.8.5.patch1-10.el6.i686)
Requires: libhdf5hl_fortran.so.6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Test #2:
$ repoquery -l --installed hdf5
/usr/bin/gif2h5
/usr/bin/h52gif
/usr/bin/h5copy
/usr/bin/h5debug
/usr/bin/h5diff
/usr/bin/h5dump
/usr/bin/h5import
/usr/bin/h5jam
/usr/bin/h5ls
/usr/bin/h5mkgrp
/usr/bin/h5perf_serial
/usr/bin/h5repack
/usr/bin/h5repart
/usr/bin/h5stat
/usr/bin/h5unjam
/usr/lib64/libhdf5.so.6
/usr/lib64/libhdf5.so.6.0.4
/usr/lib64/libhdf5_cpp.so.6
/usr/lib64/libhdf5_cpp.so.6.0.4
/usr/lib64/libhdf5_fortran.so.6
/usr/lib64/libhdf5_fortran.so.6.0.4
/usr/lib64/libhdf5_hl.so.6
/usr/lib64/libhdf5_hl.so.6.0.4
/usr/lib64/libhdf5_hl_cpp.so.6
/usr/lib64/libhdf5_hl_cpp.so.6.0.4
/usr/lib64/libhdf5hl_fortran.so.6
/usr/lib64/libhdf5hl_fortran.so.6.0.4
/usr/share/doc/hdf5-1.8.5.patch1
/usr/share/doc/hdf5-1.8.5.patch1/COPYING
/usr/share/doc/hdf5-1.8.5.patch1/HISTORY-1_0-1_8_0_rc3.txt
/usr/share/doc/hdf5-1.8.5.patch1/HISTORY-1_8.txt
/usr/share/doc/hdf5-1.8.5.patch1/MANIFEST
/usr/share/doc/hdf5-1.8.5.patch1/README.txt
/usr/share/doc/hdf5-1.8.5.patch1/RELEASE.txt

The installed package was a different versiĆ³n and for a different architecture.
I learned this with
$ repoquery -q -f --installed */libhdf5.so*
hdf5-0:1.8.5.patch1-9.el6.x86_64
Thus, I downloaded and installed
# yum install hdf5-1.8.5.patch1-10.el6.x86_64.rpm
...
# yum install hdf5-openmpi-1.8.5.patch1-10.el6.x86_64.rpm hdf5-openmpi-devel-1.8.5.patch1-10.el6.x86_64.rpm
...
and it did not complain.
This hinted me at the answer.
See also this.

Related

Error when installing libcxx and libcxxabi rpm - requires: /usr/sbin/ldconfig - Centos7

I can't seem to find any articles with the following two libc errors. I've also tried the following commands with no luck...
yum install glibc*
yum install yum-utils
yum update yum*
package-cleanup --dupes
package-cleanup --cleandupes
rm /etc/ld.so.cache
ldconfig
Full printout of yum update command
[root#test etc]# yum update
Loaded plugins: langpacks, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Resolving Dependencies
--> Running transaction check
---> Package glibc.x86_64 0:2.17-325.el7_9 will be updated
---> Package glibc.x86_64 0:2.17-326.el7_9 will be an update
---> Package glibc-common.x86_64 0:2.17-325.el7_9 will be updated
---> Package glibc-common.x86_64 0:2.17-326.el7_9 will be an update
---> Package glibc-devel.x86_64 0:2.17-325.el7_9 will be updated
---> Package glibc-devel.x86_64 0:2.17-326.el7_9 will be an update
---> Package glibc-headers.x86_64 0:2.17-325.el7_9 will be updated
---> Package glibc-headers.x86_64 0:2.17-326.el7_9 will be an update
---> Package kernel-headers.x86_64 0:3.10.0-1160.62.1.el7 will be updated
---> Package kernel-headers.x86_64 0:3.10.0-1160.66.1.el7 will be an update
--> Processing Dependency: /usr/sbin/ldconfig for package: libcxx-11.0.1-1.el7.x86_64
--> Processing Dependency: /usr/sbin/ldconfig for package: libcxxabi-11.0.1-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: libcxx-11.0.1-1.el7.x86_64 (installed)
Requires: /usr/sbin/ldconfig
Removing: glibc-2.17-325.el7_9.x86_64 (#spacewalk_centos7)
Not found
Updated By: glibc-2.17-326.el7_9.x86_64 (spacewalk_centos7)
Not found
Error: Package: libcxxabi-11.0.1-1.el7.x86_64 (installed)
Requires: /usr/sbin/ldconfig
Removing: glibc-2.17-325.el7_9.x86_64 (#spacewalk_centos7)
Not found
Updated By: glibc-2.17-326.el7_9.x86_64 (spacewalk_centos7)
Not found
[root#test etc]# rpm -qa | grep glibc
glibc-common-2.17-325.el7_9.x86_64
glibc-2.17-325.el7_9.x86_64
glibc-devel-2.17-325.el7_9.x86_64
glibc-headers-2.17-325.el7_9.x86_64
Check your /etc/yum.conf and see if you exclude any of the packages that might be blocking your installation.
I don't see any exclusions.
# in /etc/yum.repos.dc
http_caching=packages
[/etc/yum.conf][1]
[1]: https://i.stack.imgur.com/wImmA.png

MariaDB Installation RPM cyclic reference

MariaDB common and compat RPM cyclic reference
rpm -ivh MariaDB-10.1.14-centos6-x86_64-common.rpm
error: Failed dependencies:
MariaDB-compat is needed by MariaDB-common-10.1.14-1.el6.x86_64
rpm -ivh MariaDB-10.1.14-centos6-x86_64-compat.rpm
error: Failed dependencies:
MariaDB-common is needed by MariaDB-compat-10.1.14-1.el6.x86_64
common says it needs compat and compat says commmon is needed, is there any way to solve this?
Yes; installing both together:
rpm -ivh MariaDB-10.1.14-centos6-x86_64-common.rpm MariaDB-10.1.14-centos6-x86_64-compat.rpm

Not able to install gcc in fedora 16

I'm trying to install gcc in fedora 16 and I'm facing the following issue.
[root#fedora ~]yum install gcc
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete- transaction first to finish them.
--> Running transaction check
---> Package gcc.x86_64 0:4.6.3-2.fc16 will be installed
--> Processing Dependency: libgomp = 4.6.3-2.fc16 for package: gcc-4.6.3-2.fc16.x86_64
--> Processing Dependency: cpp = 4.6.3-2.fc16 for package: gcc-4.6.3-2.fc16.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.6.3-2.fc16.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.6.3-2.fc16.x86_64
--> Processing Dependency: binutils >= 2.20.51.0.2-12 for package: gcc-4.6.3-2.fc16.x86_64
--> Processing Dependency: libmpc.so.2()(64bit) for package: gcc-4.6.3-2.fc16.x86_64
--> Running transaction check
---> Package binutils.x86_64 0:2.21.53.0.1-6.fc16 will be installed
---> Package cloog-ppl.x86_64 0:0.15.11-1.fc16 will be installed
--> Processing Dependency: libppl_c.so.4()(64bit) for package: cloog- ppl-0.15.11-1.fc16.x86_64
--> Processing Dependency: libppl.so.9()(64bit) for package: cloog-ppl-0.15.11-1.fc16.x86_64
---> Package cpp.x86_64 0:4.6.3-2.fc16 will be installed
---> Package glibc-devel.x86_64 0:2.14.90-24.fc16.9 will be installed
--> Processing Dependency: glibc-headers = 2.14.90-24.fc16.9 for package: glibc-devel-2.14.90-24.fc16.9.x86_64
--> Processing Dependency: glibc = 2.14.90-24.fc16.9 for package: glibc-devel-2.14.90-24.fc16.9.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.14.90-24.fc16.9.x86_64
---> Package libgomp.x86_64 0:4.6.2-1.fc16 will be updated
---> Package libgomp.x86_64 0:4.6.3-2.fc16 will be an update
---> Package libmpc.x86_64 0:0.9-1.fc16 will be installed
--> Running transaction check
---> Package glibc.x86_64 0:2.14.90-14 will be updated
--> Processing Dependency: glibc = 2.14.90-14 for package: glibc-common-2.14.90-14.x86_64
---> Package glibc.x86_64 0:2.14.90-24.fc16.9 will be an update
---> Package glibc-headers.x86_64 0:2.14.90-24.fc16.9 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.14.90-24.fc16.9.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.14.90-24.fc16.9.x86_64
---> Package ppl.x86_64 0:0.11.2-3.fc16 will be installed
--> Processing Dependency: libpwl.so.5()(64bit) for package: ppl-0.11.2-3.fc16.x86_64
--> Running transaction check
---> Package glibc.i686 0:2.14.90-14 will be installed
--> Processing Dependency: libfreebl3.so for package: glibc-2.14.90-14.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.14.90-14.i686
---> Package glibc.x86_64 0:2.14.90-14 will be updated
---> Package kernel-headers.x86_64 0:3.6.11-4.fc16 will be installed
---> Package ppl-pwl.x86_64 0:0.11.2-3.fc16 will be installed
--> Running transaction check
---> Package nss-softokn-freebl.i686 0:3.14.1-3.fc16 will be installed
--> Finished Dependency Resolution
Error: Protected multilib versions: glibc-2.14.90-24.fc16.9.x86_64 != glibc-2.14.90-14.i686
Error: Protected multilib versions: nss-softokn-freebl-3.14.1-3.fc16.i686 != nss-softokn-freebl-3.12.10-4.fc16.x86_64
My OS is 64 bit version and I tried with installing glibc i686 version because of this issue.But I'm facing the same issue again.
On a 64 bit Fedora system, both 32 bit (ex:glibc-2.14.90-14.i686) and 64 bit (ex:glibc-2.14.90-24.fc16.9.x86_64) library must be of the same version.
The solution has already been posted in the Fedora official forum.
package-cleanup --dupes
package-cleanup --cleandupes
yum clean all
yum update
yum install gcc

Sphinx installation error

I'm trying to install Sphinx on my CentOS 6.5 VPS and get the following error.
root#hen [~]# yum localinstall sphinx-2.1.7-1.rhel6.x86_64.rpm
Loaded plugins: downloadonly, fastestmirror
Setting up Local Package Process
Examining sphinx-2.1.7-1.rhel6.x86_64.rpm: sphinx-2.1.7-1.rhel6.x86_64
Marking sphinx-2.1.7-1.rhel6.x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
* base: mirrors.adams.net
* extras: centos-distro.cavecreek.net
* updates: mirrors.bluehost.com
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
hgdedi | 2.5 kB 00:00
updates | 3.4 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package sphinx.x86_64 0:2.1.7-1.rhel6 will be installed
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: sphinx-2.1.7-1.rhel6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: sphinx-2.1.7-1.rhel6.x86_64
--> Processing Dependency: libodbc.so.2()(64bit) for package: sphinx-2.1.7-1.rhel6.x86_64
--> Processing Dependency: libpq.so.5()(64bit) for package: sphinx-2.1.7-1.rhel6.x86_64
--> Running transaction check
---> Package postgresql-libs.x86_64 0:8.4.20-1.el6_5 will be installed
---> Package sphinx.x86_64 0:2.1.7-1.rhel6 will be installed
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: sphinx-2.1.7-1.rhel6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: sphinx-2.1.7-1.rhel6.x86_64
---> Package unixODBC.x86_64 0:2.2.14-12.el6_3 will be installed
--> Finished Dependency Resolution
Error: Package: sphinx-2.1.7-1.rhel6.x86_64 (/sphinx-2.1.7-1.rhel6.x86_64)
Requires: libmysqlclient.so.16()(64bit)
Error: Package: sphinx-2.1.7-1.rhel6.x86_64 (/sphinx-2.1.7-1.rhel6.x86_64)
Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit)
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
sendmail-cf-8.14.4-8.el6.noarch has missing requires of sendmail = ('0', '8.14.4', '8.el6')
I'm more or less lost when it comes to shell commands so I hope someone can guide me :)
In theory
yum install mysql-devel
first, should sort it.

Any ideas on how to resolve this conflicts error below?

I'm trying to install gcc4-4.1.2-44.EL4_8.1.i386.rpm on my redhat 5.x system but need a lot of dependencies.
dependency - kernel-headers-2.2.19-1.0.291.i386.rpm, installed okay
dependency - glibc-headers-2.8.90-11.i386.rpm,
[root#bruce glibc-headers]# rpm -ivh glibc*
error: Failed dependencies:
glibc = 2.8.90-11 is needed by glibc-headers-2.8.90-11.i386
dependency - glibc-2.3.4-2.i386.rpm
[root#bruce glibc]# rpm -ivh glibc*
warning: glibc-2.3.4-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 73307de6 error: Failed dependencies:
glibc-common = 2.3.4-2 is needed by glibc-2.3.4-2.i386
glibc < 2.5 conflicts with glibc-common-2.5-18.i386
Did you first try this with yum? yum would automagically fetch and install all dependencies.
yum update glibc
should do it for you. It does look like you're updating glibc because some other package depends on it. You could install that original package through yum (if it is available in a repository) and that would handle this and all subsequent dependencies.
yum install <your_original_sw_name>

Resources