从源代码安装 kstars 时出现“kde-config not found”错误

Tac*_*ons 8 compiling

我正在尝试从源代码安装 kstars,但在配置时出现以下错误

./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for kde-config... not found
configure: error: The important program kde-config was not found!
Please check whether you installed KDE correctly.
Run Code Online (Sandbox Code Playgroud)

什么意思,我已经在我的电脑上安装了kde

小智 14

sudo ln -s /usr/bin/kde4-config /usr/bin/kde-config
Run Code Online (Sandbox Code Playgroud)


Jor*_*tro 8

看起来你失踪了kdelibs5-dev

sudo apt-get install kdelibs5-dev
Run Code Online (Sandbox Code Playgroud)

您可以通过安装其构建依赖项来确保安装了 kstars 的所有构建依赖项:

sudo apt-get build-dep kstars
Run Code Online (Sandbox Code Playgroud)