Install libofapi-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libofapi-dev
OpenFirmware device-tree parsing library [development files]
oflib is a library designed to make the parsing of POWER and SPARC device-tree's (OpenFirmware) simple and fast. . It is useful for querying the hardware of the current system in applications for Apple, IBM and SUN machines.