我目前正在尝试安装 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
README 说“xlib headers”是安装所必需的,但我找不到这个包。我推测它是“xorg”的一部分,我已经安装了。我试图理解它到底说我缺少什么,但我很难理解。我试了很长时间,但我已经想不出主意了。任何想法或帮助都将不胜感激。感谢您的时间
答案1
您必须安装必要的开发包字体配置工具,freetype2.pc和 X11:
sudo apt-get install build-essential libfontconfig1-dev libfreetype-dev x11proto-dev libx11-dev libxft-dev
然后重试编译。