sysfonts
sysfonts copied to clipboard
Unable to install on Ubuntu 20.04
When trying to install, I get the following error:
checking for freetype-config... no
****************************************************
Error: freetype-config not found.
Please install FreeType with freetype-config script.
If you have not installed FreeType, you can
download the source code from http://freetype.org/
In Debian/Ubuntu-like systems, you can use
"sudo apt-get install libfreetype6-dev"
to install FreeType
For rpm-based systems, try
"sudo yum install freetype-devel"
****************************************************
I followed the suggested steps and ran sudo apt-get install libfreetype6-dev
, however, I still get the error. I have verified libfreetype6-dev
is installed by running dpkg --get-selections | grep libfreetype6
.
From some of my own investigation, it seems as though libfreetype6-dev
no longer packages freetype-config
since it has been deprecated and instead pkg-config
should be used: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892451
The next release of libfreetype6-dev will not ship
freetype-config', as the script has now been deprecated in favour of
pkg-config'.This is an upstream change:
"Use of the `freetype-config' script to get compilation and
linking options is deprecated since it doesn't support
cross-compiling, among other deficiencies. Instead, you should
use the `pkg-config' interface."