Skip to content

Compiling CHAP on Ubuntu 22.04 with gcc #54

Description

@tekpinar

Hi,
I was trying to install CHAP on Ubuntu 22.04 with gcc-11. Unfortunately, it didn't work due to incompatibility issues with gcc-11 and gromacs-2022. I found a solution and I wanted to post it here just in case someone else encounters it. I installed gcc-9 with 'sudo apt install gcc-9 g++-9'. Then, I compiled gromacs-2018 with the following command:
cmake .. -DREGRESSIONTEST_DOWNLOAD=OFF -DGMX_GPU=OFF -DCMAKE_INSTALL_PREFIX=/usr/local/gromacs-2018/ -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9 -DGMX_HWLOC=OFF

Finally, I compiled CHAP with gcc9 using the following cmake setup:
cmake .. DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9

I hope this may help people who want to compile it.
Best,
Mustafa

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions