1. Contents of set-env-var.x file: export OPENMM_PLUGIN_DIR=/home/rossi/miniconda3/lib/plugins/ export OPENMM_LIBRARY=/home/rossi/miniconda3/lib/ export OPENMM_INCLUDE_DIR=/home/rossi/miniconda3/include/ export OPENMM_HOME=/home/rossi/miniconda3/ export OPENMM_DIR=/home/rossi/miniconda3/ 2. Execute the set-env-var.x file to define OPENMM environment variables: source ./set-env-var.x 3. Check for defined OPENMM envrionment variables: (base) Thu Jan 06 09:19:26 [rossi@debian charmm-build-openmm]$env | grep OPENMM OPENMM_DIR=/home/rossi/miniconda3/ OPENMM_LIBRARY=/home/rossi/miniconda3/lib/ OPENMM_PLUGIN_DIR=/home/rossi/miniconda3/lib/plugins/ OPENMM_INCLUDE_DIR=/home/rossi/miniconda3/include/ OPENMM_HOME=/home/rossi/miniconda3/ 4. ../configure ===== WARNING install prefix not specified depending on your system, executing make install may result in directories being written to /usr/local or somewhere similar ===== configuration using cmake continues using env /usr/bin/cmake /home/rossi/Downloads/workshop/charmm/c46b1 after configuration run make in /home/rossi/Downloads/workshop/charmm/c46b1/charmm-build-openmm to compile and link the charmm executable ===== -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- The Fortran compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Check for working Fortran compiler: /usr/bin/gfortran - skipped -- Found FFTW: /usr/include -- Found FFTWF: /usr/lib/x86_64-linux-gnu/libfftw3f.so -- Found MPI_C: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so (found version "3.1") -- Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so (found version "3.1") -- Found MPI_Fortran: /usr/lib/x86_64-linux-gnu/libmpi_usempif08.so (found version "3.1") -- Found MPI: TRUE (found version "3.1") -- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP_Fortran: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5") -- Found OpenMP_Fortran: -fopenmp -- OpenMM : FOUND OPENMM_INCLUDE_DIRS ->/home/rossi/miniconda3/include<- -- OpenMM : FOUND OPENMM_LIBRARIES ->/usr/lib/x86_64-linux-gnu/libOpenMM.so<- -- OpenMM : FOUND OPENMM_PLUGIN_DIR ->/home/rossi/miniconda3/lib/plugins<- -- OpenMM : FOUND OPENMM_CPU_PLUGIN ->/home/rossi/miniconda3/lib/plugins/libOpenMMCPU.so<- -- OpenMM : FOUND OPENMM_CUDA_PLUGIN ->/home/rossi/miniconda3/lib/plugins/libOpenMMCUDA.so<- -- OpenMM : FOUND OPENMM_OPENCL_PLUGIN ->/home/rossi/miniconda3/lib/plugins/libOpenMMOpenCL.so<- -- Found OpenMM: /home/rossi/miniconda3/include -- Could NOT find ExaFMM (missing: ExaFMM_LIBRARY) -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) -- found OPENMM flags -> <- -- OpenMM version detected ->76<- -- OpenCL not found -- full build chosen -- Configuring done -- Generating done -- Build files have been written to: /home/rossi/Downloads/workshop/charmm/c46b1/charmm-build-openmm ===== you are now ready to run make in /home/rossi/Downloads/workshop/charmm/c46b1/charmm-build-openmm ===== 5. Execute make; The result is a lot of un resolved references to openmm: ...... snip ..... /usr/bin/ld: omm_switching.F90:(.text+0x1d71): undefined reference to `openmm_system_addforce_' /usr/bin/ld: omm_switching.F90:(.text+0x1dc0): undefined reference to `openmm_doublearray_create_' /usr/bin/ld: omm_switching.F90:(.text+0x1eee): undefined reference to `openmm_customnonbondedforce_addparticle_' /usr/bin/ld: omm_switching.F90:(.text+0x207b): undefined reference to `openmm_doublearray_destroy_' /usr/bin/ld: omm_switching.F90:(.text+0x2276): undefined reference to `openmm_custombondforce_create_' /usr/bin/ld: omm_switching.F90:(.text+0x22bc): undefined reference to `openmm_custombondforce_addglobalparameter_' /usr/bin/ld: omm_switching.F90:(.text+0x22e9): undefined reference to `openmm_custombondforce_addglobalparameter_' /usr/bin/ld: omm_switching.F90:(.text+0x238d): undefined reference to `openmm_custombondforce_addperbondparameter_' /usr/bin/ld: omm_switching.F90:(.text+0x23e0): undefined reference to `openmm_system_addforce_' /usr/bin/ld: omm_switching.F90:(.text+0x2706): undefined reference to `openmm_customnonbondedforce_getenergyfunction_' /usr/bin/ld: omm_switching.F90:(.text+0x27af): undefined reference to `openmm_custombondforce_getenergyfunction_' /usr/bin/ld: omm_switching.F90:(.text+0x285a): undefined reference to `openmm_custombondforce_getnumglobalparameters_' /usr/bin/ld: omm_switching.F90:(.text+0x28dc): undefined reference to `openmm_custombondforce_getnumperbondparameters_' /usr/bin/ld: omm_switching.F90:(.text+0x295e): undefined reference to `openmm_custombondforce_getnumbonds_' /usr/bin/ld: omm_switching.F90:(.text+0x2b32): undefined reference to `openmm_doublearray_create_' /usr/bin/ld: omm_switching.F90:(.text+0x2f5d): undefined reference to `openmm_customnonbondedforce_addexclusion_' /usr/bin/ld: omm_switching.F90:(.text+0x30f3): undefined reference to `openmm_custombondforce_addbond_' /usr/bin/ld: omm_switching.F90:(.text+0x335b): undefined reference to `openmm_customnonbondedforce_setnonbondedmethod_' ...... snip ..... WHY? HELP!!! P.S. Adding OPENMM diretories doesn't help, ie. export LD_LIBRARY_PATH = ........... :$LD_LIBRARY_PATH