error loading plugin: libimf.so

I am running OneAPI 2022.1.2.117 on RHEL 8.6 and receive the following error during compilation.

ifort -o Section_make_poly Section_make_poly.f
ld: /opt/intel/oneapi/compiler/2022.0.2/linux/bin/intel64/../../bin/intel64/../../lib/icx-lto.so: error loading plugin: libimf.so: cannot open shared object file: No such file or directory

Is there anyone with a suggestion?

either a bad installation or an incomplete LD_LIBRARY_PATH

cd /opt/intel/oneapi/compiler/latest

find . -name libimf.so

./linux/compiler/lib/ia32_lin/libimf.so

./linux/compiler/lib/intel64_lin/libimf.so

now check

echo $LD_LIBRARY_PATH

check that env var has /opt/intel/oneapi/compiler/2022.0.2/linux/lib/intel64_lin  in the path

You are using bash as shell and

source /opt/intel/onepi/setvars.sh