How to find required packages needed by cairo?

Hello, I am currently trying to install and old version of Cairo. I tried two versions, 10.5 and 1.1.1 and they say similar things. Pango 1.1.1 says:

and Pango 1.0.5 says:

So quite similar. I downloaded two freetype packages, versions number 2.9.1 and 2.2.1 and passed them through PKG_CONFIG_PATH. It did not change the error messages. Doing a search, I found that this tterrors.h file is not present and doing a quick search around the internet, I could not find the precise package(s) that I need, so I am currently lost on what packages to look for. Any help might be useful.

Could you install a binary package instead? They at least list their dependencies before install

Possibly, but all the work that I already had with the other dependencies, I really wan to to try to compile pango, especially since it might be the last remaining dependency.