Reported errors when installing OpenMPI on Centos7

Hi everyone

When I installed OpenMPI on Centos7, it reported 7 errors as follows. How to solve these problem. Thank you.

[feiyang@k186 ~]$ sudo yum install openmpi-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
→ Running transaction check
—> Package openmpi-devel.x86_64 0:1.10.7-5.el7 will be installed
→ Processing Dependency: openmpi = 1.10.7-5.el7 for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libotfaux.so.0()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: liboshmem.so.8()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libmpi_usempi.so.5()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libmpi_mpifh.so.12()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libmpi_cxx.so.1()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libmpi.so.12()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libhwloc.so.5()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Running transaction check
—> Package compat-openmpi16.x86_64 0:1.6.4-10.7.2.el7 will be installed
→ Processing Dependency: environment-modules for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
→ Processing Dependency: libpsm_infinipath.so.1()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
→ Processing Dependency: libosmcomp.so.4()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
→ Processing Dependency: libesmtp.so.6()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
—> Package hwloc-libs.x86_64 0:1.11.8-4.el7 will be installed
—> Package mvapich23.x86_64 0:2.3-4.el7 will be installed
—> Package openmpi.i686 0:1.10.7-5.el7 will be installed
→ Processing Dependency: librdmacm.so.1(RDMACM_1.0) for package: openmpi-1.10.7-5.el7.i686
→ Processing Dependency: librdmacm.so.1 for package: openmpi-1.10.7-5.el7.i686
→ Processing Dependency: libquadmath.so.0 for package: openmpi-1.10.7-5.el7.i686
→ Processing Dependency: libosmcomp.so.4 for package: openmpi-1.10.7-5.el7.i686
→ Processing Dependency: libibverbs.so.1(IBVERBS_1.1) for package: openmpi-1.10.7-5.el7.i686
→ Processing Dependency: libibverbs.so.1(IBVERBS_1.0) for package: openmpi-1.10.7-5.el7.i686
→ Processing Dependency: libibverbs.so.1 for package: openmpi-1.10.7-5.el7.i686
→ Processing Dependency: libhwloc.so.5 for package: openmpi-1.10.7-5.el7.i686
→ Processing Dependency: libgfortran.so.3 for package: openmpi-1.10.7-5.el7.i686
→ Processing Dependency: libfabric.so.1(FABRIC_1.2) for package: openmpi-1.10.7-5.el7.i686
→ Processing Dependency: libfabric.so.1(FABRIC_1.1) for package: openmpi-1.10.7-5.el7.i686
→ Processing Dependency: libfabric.so.1(FABRIC_1.0) for package: openmpi-1.10.7-5.el7.i686
→ Processing Dependency: libfabric.so.1 for package: openmpi-1.10.7-5.el7.i686
—> Package openmpi-devel.x86_64 0:1.10.7-5.el7 will be installed
→ Processing Dependency: liboshmem.so.8()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libmpi_usempi.so.5()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libmpi_mpifh.so.12()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Running transaction check
—> Package compat-openmpi16.x86_64 0:1.6.4-10.7.2.el7 will be installed
→ Processing Dependency: libosmcomp.so.4()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
—> Package environment-modules.x86_64 0:3.2.10-10.el7 will be installed
—> Package hwloc-libs.i686 0:1.11.8-4.el7 will be installed
→ Processing Dependency: libnuma.so.1(libnuma_1.2) for package: hwloc-libs-1.11.8-4.el7.i686
→ Processing Dependency: libnuma.so.1(libnuma_1.1) for package: hwloc-libs-1.11.8-4.el7.i686
→ Processing Dependency: libnuma.so.1 for package: hwloc-libs-1.11.8-4.el7.i686
→ Processing Dependency: libltdl.so.7 for package: hwloc-libs-1.11.8-4.el7.i686
—> Package infinipath-psm.x86_64 0:3.3-26_g604758e_open.2.el7 will be installed
—> Package libesmtp.x86_64 0:1.0.6-7.el7 will be installed
—> Package libfabric.i686 0:1.7.2-1.el7 will be installed
→ Processing Dependency: libnl-route-3.so.200 for package: libfabric-1.7.2-1.el7.i686
→ Processing Dependency: libnl-3.so.200(libnl_3) for package: libfabric-1.7.2-1.el7.i686
→ Processing Dependency: libnl-3.so.200 for package: libfabric-1.7.2-1.el7.i686
→ Processing Dependency: libatomic.so.1 for package: libfabric-1.7.2-1.el7.i686
—> Package libgfortran.i686 0:4.8.5-44.el7 will be installed
—> Package libibverbs.i686 0:22.4-6.el7_9 will be installed
→ Processing Dependency: rdma-core(x86-32) = 22.4-6.el7_9 for package: libibverbs-22.4-6.el7_9.i686
—> Package libquadmath.i686 0:4.8.5-44.el7 will be installed
—> Package librdmacm.i686 0:22.4-6.el7_9 will be installed
—> Package openmpi-devel.x86_64 0:1.10.7-5.el7 will be installed
→ Processing Dependency: liboshmem.so.8()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libmpi_usempi.so.5()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libmpi_mpifh.so.12()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
—> Package opensm-libs.i686 0:3.3.21-4.el7_9 will be installed
→ Processing Dependency: libibumad.so.3(IBUMAD_1.0) for package: opensm-libs-3.3.21-4.el7_9.i686
→ Processing Dependency: libibumad.so.3 for package: opensm-libs-3.3.21-4.el7_9.i686
→ Running transaction check
—> Package compat-openmpi16.x86_64 0:1.6.4-10.7.2.el7 will be installed
→ Processing Dependency: libosmcomp.so.4()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
—> Package libatomic.i686 0:4.8.5-44.el7 will be installed
—> Package libibumad.i686 0:22.4-6.el7_9 will be installed
—> Package libnl3.i686 0:3.2.28-4.el7 will be installed
—> Package libtool-ltdl.i686 0:2.4.2-22.el7_3 will be installed
—> Package numactl-libs.x86_64 0:2.0.9-6.el7_2 will be updated
—> Package numactl-libs.i686 0:2.0.12-5.el7 will be installed
—> Package numactl-libs.x86_64 0:2.0.12-5.el7 will be an update
—> Package openmpi-devel.x86_64 0:1.10.7-5.el7 will be installed
→ Processing Dependency: liboshmem.so.8()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libmpi_usempi.so.5()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libmpi_mpifh.so.12()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
—> Package rdma-core.i686 0:22.4-6.el7_9 will be installed
Removing rdma-core.i686 0:22.4-6.el7_9 - u due to obsoletes from installed mlnx-ofa_kernel-5.3-OFED.5.3.1.0.0.1.rhel7u4.x86_64
→ Restarting Dependency Resolution with new changes.
→ Running transaction check
—> Package compat-openmpi16.x86_64 0:1.6.4-10.7.2.el7 will be installed
→ Processing Dependency: libosmcomp.so.4()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
—> Package openmpi-devel.x86_64 0:1.10.7-5.el7 will be installed
→ Processing Dependency: liboshmem.so.8()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libmpi_usempi.so.5()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
→ Processing Dependency: libmpi_mpifh.so.12()(64bit) for package: openmpi-devel-1.10.7-5.el7.x86_64
—> Package rdma-core.i686 0:22.4-6.el7_9 will be installed
→ Processing Dependency: rdma-core(x86-32) = 22.4-6.el7_9 for package: libibumad-22.4-6.el7_9.i686
→ Processing Dependency: rdma-core(x86-32) = 22.4-6.el7_9 for package: librdmacm-22.4-6.el7_9.i686
→ Processing Dependency: rdma-core(x86-32) = 22.4-6.el7_9 for package: libibverbs-22.4-6.el7_9.i686
→ Finished Dependency Resolution
Error: Package: libibumad-22.4-6.el7_9.i686 (updates)
Requires: rdma-core(x86-32) = 22.4-6.el7_9
Available: rdma-core-22.4-5.el7.i686 (base)
rdma-core(x86-32) = 22.4-5.el7
Installed: rdma-core-52mlnx1-1.53100.x86_64 (installed)
~rdma-core(x86-64) = 52mlnx1-1.53100
Available: rdma-core-22.4-6.el7_9.x86_64 (updates)
~rdma-core(x86-64) = 22.4-6.el7_9
Error: Package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64 (base)
Requires: libosmcomp.so.4()(64bit)
Available: opensm-libs-3.3.21-3.el7_8.x86_64 (base)
libosmcomp.so.4()(64bit)
Available: opensm-libs-3.3.21-4.el7_9.x86_64 (updates)
libosmcomp.so.4()(64bit)
Installed: opensm-libs-5.8.2.MLNX20210321.2958ab8-0.1.53100.x86_64 (installed)
~libosmcomp.so.3()(64bit)
Error: Package: openmpi-devel-1.10.7-5.el7.x86_64 (base)
Requires: libmpi_usempi.so.5()(64bit)
Available: openmpi-1.10.7-5.el7.x86_64 (base)
libmpi_usempi.so.5()(64bit)
Installed: openmpi-4.1.0rc5-1.53100.x86_64 (installed)
~libmpi_usempi.so.40()(64bit)
Error: Package: openmpi-devel-1.10.7-5.el7.x86_64 (base)
Requires: liboshmem.so.8()(64bit)
Available: openmpi-1.10.7-5.el7.x86_64 (base)
liboshmem.so.8()(64bit)
Installed: openmpi-4.1.0rc5-1.53100.x86_64 (installed)
~liboshmem.so.40()(64bit)
Error: Package: librdmacm-22.4-6.el7_9.i686 (updates)
Requires: rdma-core(x86-32) = 22.4-6.el7_9
Available: rdma-core-22.4-5.el7.i686 (base)
rdma-core(x86-32) = 22.4-5.el7
Installed: rdma-core-52mlnx1-1.53100.x86_64 (installed)
~rdma-core(x86-64) = 52mlnx1-1.53100
Available: rdma-core-22.4-6.el7_9.x86_64 (updates)
~rdma-core(x86-64) = 22.4-6.el7_9
Error: Package: openmpi-devel-1.10.7-5.el7.x86_64 (base)
Requires: libmpi_mpifh.so.12()(64bit)
Available: openmpi-1.10.7-5.el7.x86_64 (base)
libmpi_mpifh.so.12()(64bit)
Installed: openmpi-4.1.0rc5-1.53100.x86_64 (installed)
~libmpi_mpifh.so.40()(64bit)
Error: Package: libibverbs-22.4-6.el7_9.i686 (updates)
Requires: rdma-core(x86-32) = 22.4-6.el7_9
Available: rdma-core-22.4-5.el7.i686 (base)
rdma-core(x86-32) = 22.4-5.el7
Installed: rdma-core-52mlnx1-1.53100.x86_64 (installed)
~rdma-core(x86-64) = 52mlnx1-1.53100
Available: rdma-core-22.4-6.el7_9.x86_64 (updates)
~rdma-core(x86-64) = 22.4-6.el7_9
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

What machine are you running on? What is your processor?

Hi Onlyjus,
I am installing OpenMPI on a computer cluster which uses Centos7 system. The processor for this computer cluster is Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz.

Installing OpenMPI is out of scope for this forum. Typically you need to compile OpenMPI with specific compilers. i.e., if you are using gnu9.3, you need to compile openmpi with gnu9.3

You can also try using Spack (https://spack.io/). I use spack to manage a collection of compiler and openmpi versions. Takes care of building the packages for you :slight_smile:

Since you are on a cluster, is OpenMPI already installed? Does your system use modules?

List all available modules

module whatis

Load mpi

module load openmpi/4.0.4_gnu9.3