---
title: 编译时报“fatal error: 'hb.h' file not found”错误
description: "/usr/include/pango-1.0/pango/pango-coverage.h:28:10: fatal error: 'hb.h' file not found #include <hb.h>，没有找到“hb.h”文件。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/openmind_kunpengpyferret_02_0014.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/prtg-osc/openmind_kunpengpyferret_02_0014.html
indexId: 59ab73e4fa973033b540c8896994ec9f37431873adc8b32f70f61a37d527d6b579
---
# 编译时报“fatal error: 'hb.h' file not found”错误

#### 问题现象描述

/usr/include/pango-1.0/pango/pango-coverage.h:28:10: fatal error: 'hb.h' file not found #include <hb.h>，没有找到“hb.h”文件。


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

无。


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

1. 执行以下命令查询hb.h所在目录。

```
cd /usr
find -name hb.h
```


2. 执行以下命令修改“Makefile”文件。

  a. 打开“Makefile”文件。

```
cd
/path/to/PyFerret
/PyFerret-7.6.0
vi
/path/to/PyFerret
/PyFerret-7.6.0/fer/cferbind/Makefile
```


  b. 按“i”进入编辑模式，在第17行添加“-I/usr/include/harfbuzz”。
    执行2.a之后，按“Esc”键，输入“:set nu”，按“Enter”即可显示出行号。

  c. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
3. 执行以下命令重新编译。

```
make clean
make
```
