我在 Dell Precision T3400 上运行 CentOS 7。我已经安装了 Cacti 网络监控工具,并正在尝试安装最后一个关键二进制文件 Spine。我已经下载了 Spine,并尝试使用以下命令进行安装:
cd /tmp/(spine directory)
./bootstrap
./configure
make
make install
但是当我尝试运行时./configure
我收到此输出:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/cacti-spine-0.8.8h':
configure: error: C compiler cannot create executables
see config.log
说道config.log
:
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /tmp/cacti-spine-0.8.8h/config/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "Spine Poller"
#define PACKAGE_TARNAME "spine-poller"
#define PACKAGE_VERSION "0.8.8h"
#define PACKAGE_STRING "Spine Poller 0.8.8h"
#define PACKAGE_BUGREPORT "http://www.cacti.net/bugs.php"
#define PACKAGE_URL ""
#define PACKAGE "spine"
#define VERSION "0.8.8h"
configure: exit 77
我该如何解决这个问题?
答案1
我解决了这个问题,结果发现缺少了什么net-snmp-devel
,并且openssl-devel
知道是否有其他人遇到这个问题。
答案2
可能是./bootstrap
命令搞乱了原本完美的configure
脚本cacti-spine-0.8.8h/
https://www.cacti.net/downloads/spine/cacti-spine-0.8.8h.tar.gz
要求 :# yum install mariadb-devel
解决方案:拆开新的cacti-spine-0.8.8h.tar.gz
cd cacti-spine-0.8.8h/
./configure
make
# make install
...这里没有问题,CentOS 7.4.1708。