---
title: 编译过程中提示“.fatal error: boost/config/compiler/gcc.hpp: No such file or directory”
description: "在运行Allwmake编译CGAL时编译失败，提示“.fatal error: boost/config/compiler/gcc.hpp: No such file or directory”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0094.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0094.html
indexId: bafc061d96e35086e7fe4bc0582a11d62979e02b330624211196311816ecbd7f74
---
# 编译过程中提示“.fatal error: boost/config/compiler/gcc.hpp: No such file or directory”

#### 问题现象描述

在运行Allwmake编译CGAL时编译失败，提示“.fatal error: boost/config/compiler/gcc.hpp: No such file or directory”。


#### 关键过程、根本原因分析

安装过程中因为环境变量或者CMAKE安装失败导致的CGAL安装失败。如果OpenFOAM某一模块在安装过程中报错，只需单独重复安装出错模块即可。


#### 结论、解决方案及效果

1. 删除已安装的执行文件及路径。
  rm -rf /path/to/OPENFOAM/OpenFOAM-v1906/platform/arch/boost_1_64_0

2. 运行Thirdparty-v1906中独立安装脚本。
  cd /path/to/OPENFOAM/Thirdparty-v1906

  ./makeCGAL
