hexagon logo

When trying to create (compile) a user executable I get the error message "No Intel compiler was found ...", but ifort is properly installed. What could be the resolution?

Adams v. 2021.0.1
ifort (IFORT) 19.0.4.227 20190416
 
/app/msc/adams/v2021.0.1/mdi -c cr-u
  *** Error *** No Intel compiler was found to build the user library.
 
ifort --version
ifort (IFORT) 19.0.4.227 20190416
Copyright (C) 1985-2019 Intel Corporation. All rights reserved.
  • The solution of the situation was setting the environment variables MSC_IFORT_DIR and MSC_ICC_DIR correctly.
    On my RedHat-machine this meant setting both variables to
     
    /app/intel/compiler194/compilers_and_libraries_2019.4.227/linux/
     
    which contains the bin directory, and within bin further subdirectories contain the ifort and icc executables.