# G09 qmmm on Linux Cluster not set up properly

**URL:** <https://gromacs.bioexcel.eu/t/g09-qmmm-on-linux-cluster-not-set-up-properly/1686>\
**Category:** User discussions\
**Created:** [March 5, 2021, 6:07am UTC](https://gromacs.bioexcel.eu/t/g09-qmmm-on-linux-cluster-not-set-up-properly/1686 "2021-03-05T06:07:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![venturellac](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@venturellac](https://gromacs.bioexcel.eu/u/venturellac)\
**Post date:** [March 5, 2021, 6:07am UTC](https://gromacs.bioexcel.eu/t/g09-qmmm-on-linux-cluster-not-set-up-properly/1686/1 "2021-03-05T06:07:23Z")

</div>

GROMACS version: 2019.6  
GROMACS modification:No  
When I run a qmmm simulation, gromacs returns an error that I don’t have the proper configuration for qmmm. This is the error in forecrec.cpp:

Software inconsistency error:  
QM/MM was requested, but is only available when GROMACS is configured with  
QM/MM support

How can I do this for gromacs 2019.6? I used these options to install explicitly the qmmm interface for Gaussian:

# gromacs will add -march=core-avx2 to the next line

OPTFLAGS="-Ofast -mtune=broadwell -DNDEBUG"

cmake3 … -DCMAKE\_BUILD\_TYPE=Release \

-DCMAKE\_C\_COMPILER=icc -DCMAKE\_C\_FLAGS\_RELEASE="$OPTFLAGS" \

-DCMAKE\_CXX\_COMPILER=icpc -DCMAKE\_CXX\_FLAGS\_RELEASE="$OPTFLAGS" \

-DGMX\_BUILD\_MDRUN\_ONLY=OFF -DGMX\_MPI=OFF -DGMX\_OPENMP=ON \

-DGMX\_SIMD=AVX2\_256 -DGMX\_DOUBLE=OFF \

-DGMX\_FFT\_LIBRARY=mkl \

-DGMX\_GPU=ON -DGMX\_CUDA\_TARGET\_SM=60 \

-DCMAKE\_INSTALL\_PREFIX=$HOME/.local \

-DGMX\_COOL\_QUOTES=OFF -DREGRESSIONTEST\_DOWNLOAD=ON

-DGMX\_QMMM\_PROGRAM=GAUSSIAN

make -j 10

make check

make install

Since I checked with grep that there are the qmmm binaries in src, I think it is an issue with how I sete environment variables for gromacs to talk to g09. I tried my best to follow these instructions here: [QM/MM implementation in Gromacs](http://wwwuser.gwdg.de/~ggroenh/qmmm.html)

Any help greatly appreciated!
