Debian 检查结果为否

Debian 检查结果为否

我有一个运行 Debian Lenny 的家庭服务器。我试图在上面安装 iStat Server,但它就是不工作。我让它在另一台也运行 lenny 的服务器上工作……它“开箱即用”。

当我运行配置脚本时,我得到的结果如下:

~/istatd-0.5.7# ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for ranlib... ranlib
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/root/istatd-0.5.7':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.

怎么了?

答案1

您缺少 c++ 编译器。尝试安装 gcc 和 g++(不确定 debian 中软件包的具体命名方式,可能是 gcc-c++)。

答案2

您可能还缺少其他开发包,但至少您需要安装该build-essential包及其依赖项。

sudo aptitude install build-essential

根据您要构建的内容,您可能需要其他开发库、标头等。例如,你的项目的readme.txt 明确列为libxml2-dev依赖项,因此您也需要将其包括在内。

相关内容