yum install cuda-10-0 conflicts with mesa-libGL

RHEL 7.5.

After running yum install cuda-10-0 I get:

Transaction check error:
file /usr/lib64/libGL.so.1 from install of libglvnd-glx-1:1.0.1-0.8.git5baa1e5.el7.x86_64 conflicts with file from package mesa-libGL-17.2.3-8.20171019.el7.x86_64
file /usr/lib64/libGLESv2.so.2 from install of libglvnd-gles-1:1.0.1-0.8.git5baa1e5.el7.x86_64 conflicts with file from package mesa-libGLES-17.2.3-8.20171019.el7.x86_64
file /usr/lib64/libEGL.so.1 from install of libglvnd-egl-1:1.0.1-0.8.git5baa1e5.el7.x86_64 conflicts with file from package mesa-libEGL-17.2.3-8.20171019.el7.x86_64

Repository baseurl=Index of /compute/cuda/repos/rhel7/x86_64

I am seeing the same problem with RHEL 7.4

Transaction check error:
file /usr/lib64/libGL.so.1 from install of libglvnd-glx-1:1.0.1-0.8.git5baa1e5.el7.x86_64 conflicts with file from package mesa-libGL-17.2.3-8.20171019.el7.x86_64
file /usr/lib64/libGLESv2.so.2 from install of libglvnd-gles-1:1.0.1-0.8.git5baa1e5.el7.x86_64 conflicts with file from package mesa-libGLES-17.2.3-8.20171019.el7.x86_64
file /usr/lib64/libEGL.so.1 from install of libglvnd-egl-1:1.0.1-0.8.git5baa1e5.el7.x86_64 conflicts with file from package mesa-libEGL-17.2.3-8.20171019.el7.x86_64

I get the same error using a fresh, minimal install of RHEL Server 7.5 from the DVD ISO, on a HPE DL380 gen 10 with a VP100.

I was able to install CUDA 10.0 by downloading the latest mesa and libglvnd RPMs from Red Hat.

Describes the mesa vs libglvnd conflict:
https://bugzilla.redhat.com/show_bug.cgi?id=1584740

Bug fix issued after RHEL 7.6 release, with updated RPMs:
https://access.redhat.com/errata/RHSA-2018:3059

The last link to redhat doesn’t work any more.
The following solved the issue for me on RHEL 7.6

sudo yum install mesa-libGL.x86_64 mesa-libEGL.x86_64
2 Likes