Rate This Document
Findability
Accuracy
Completeness
Readability

".fatal error: boost/config/compiler/gcc.hpp: No such file or directory" Reported During Compilation

Symptom

When Allwmake is run to compile the Computational Geometry Algorithms Library (CGAL), the compilation fails and the error message ".fatal error: boost/config/compiler/gcc.hpp: No such file or directory" is displayed.

Key Process and Cause Analysis

The CGAL fails to be installed due to an environment variable or CMake installation failure. If the error occurs during the installation of a module of OpenFOAM, you only need to install the module again.

Conclusion and Solution

  1. Delete the installed executable file and path.

    rm -rf /path/to/OPENFOAM/OpenFOAM-v1906/platform/arch/boost_1_64_0

  2. Run the independent installation script in Thirdparty-v1906.

    cd /path/to/OPENFOAM/Thirdparty-v1906

    ./makeCGAL