Rate This Document
Findability
Accuracy
Completeness
Readability

Error "fatal error: 'hb.h' file not found" Reported During the Compilation

Symptom

A message is displayed stating "/usr/include/pango-1.0/pango/pango-coverage.h:28:10: fatal error: 'hb.h' file not found #include <hb.h>." That means the hb.h file is not found.

Key Process and Cause Analysis

None

Conclusion and Solution

  1. Query the directory where hb.h is.
    cd /usr
    find -name hb.h

  2. Modify the Makefile file.
    1. Open the Makefile file.
      cd /path/to/PyFerret/PyFerret-7.6.0
      vi /path/to/PyFerret/PyFerret-7.6.0/fer/cferbind/Makefile
    2. Press i to enter the edit mode and add -I/usr/include/harfbuzz to line 17.

      After performing 2.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Perform the compilation again.
    make clean
    make