error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directory

I'm trying to run DaVinci Resolve on Centos 7, but when I start the program from the terminal I get the following error:

error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directory

As best as I can tell, the library isn't installed on my system. When I tried to run yum install libOpenCl it said the library doesn't exist. How can I get this library installed on my machine?


Solution 1:

For Ubuntu, try:

How to install libOpenCL.so on Ubuntu

sudo apt update
sudo apt install ocl-icd-opencl-dev

Solution 2:

hi I noticed that my Davinci Resolve crashed with an OpenCL Clang message so on ubuntu this fixed it for me sudo apt install libopencl-clang-dev