./configure 错误 xft.pc 丢失

./configure 错误 xft.pc 丢失

我尝试安装某些东西并按照自述文件中的要求进行操作。/configure 但它给了我以下错误:

checking for xft... Package xft was not found in the pkg-config search path. Perhaps you should add the directory containing `xft.pc' to the PKG_CONFIG_PATH environment variable No package 'xft' found
configure: error: Library requirements (xft) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix

我对 Linux 不是很熟悉,所以我在 Google 上搜索了一下,找到了命令“locate xft.pc”,但它没有给我任何输出,所以我认为我错过了 xft.pc。我试过“sudo apt-get xft.pc”,但也没用。有什么想法吗?

答案1

您需要安装的软件包名为libxft-devsudo apt-get -y install libxft-dev

相关内容