我目前正在尝试安装 Suckless-terminal。我之前已经安装过这个应用程序一次零故障,所以这一次让我失望了。我跑了:
git clone https://git.suckless.org/st
cd st
sudo make clean install
我收到的错误消息是:
cp config.def.h config.h
c99 -I/usr/X11R6/include `pkg-config --cflags fontconfig` `pkg-config --cflags freetype2` -DVERSION=\"0.8.4\" -D_XOPEN_SOURCE=600 -O -c st.c
Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fontconfig' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
/bin/sh: 1: c99: not found
make: *** [Makefile:22: st.o] Error 127
自述文件说“xlib 头文件”是安装所必需的,但我找不到这个包。我认为它是我已经安装的“xorg”的一部分。我厌倦了确切地理解它在说我错过了什么,但我很难理解它。我已经尝试了很长时间,但我完全没有想法。任何想法或帮助将不胜感激。感谢您的时间
您必须为fontconfig.pc、freetype2.pc和 X11 安装必要的开发包:
然后重试编译。