qsimulate-open / bagel

Brilliantly Advanced General Electronic-structure Library
GNU General Public License v3.0
92 stars 44 forks source link

Error in installation #224

Closed mushirthodika closed 3 years ago

mushirthodika commented 3 years ago

When I configure within the obj directory, I get an error saying "mkl.h not found or not working". I am not sure as to what's wrong here. Please help! Also find attached the config.log file.

config.log

shiozaki commented 3 years ago

That literally means that mkl.h is not found in the path. Make sure that you have MKL and you sourced the configure file in the bashrc or equivalent. This is from the log:

conftest.c:62:10: fatal error: mkl.h: No such file or directory
   62 | #include <mkl.h>
      |          ^~~~~~~
compilation terminated.

You need to do something like

source /opt/intel/bin/compilervars.sh intel64

exact command you need to hit is dependent on the MKL installation and whatnots.

Since this is not a bug in bagel, let me close the issue.