当我尝试在 centos7 中安装 ganglia 时,出现以下错误
Configuring libmetrics ...
checking for pthread_create in -lpthread... yes
checking for pthread_create in -lpthreads... no
checking rrd.h usability... yes
checking rrd.h presence... yes
checking for rrd.h... yes
checking for rrd_create in -lrrd... no
Trying harder by including the X library path
checking for rrd_create in -lrrd... no
但我已经安装了 rrd 工具
rrdtool -v
RRDtool 1.4.8 Copyright 1997-2013 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Nov 20 2015 19:23:48
配置命令:
./configure LDFLAGS="-L/usr/lib64"--build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking -- prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-gmetad --enable-status --sysconfdir=/etc/ganglia
回答:
在查看 config.log 文件时,我们看到
/usr/lib64/libEGL.so.1: undefined reference to `drmFreeDevice'
libEGL.so 的符号不可用。因此进行了更新,解决了这个问题。
最佳答案
sudo yum -y update - 修复了问题
关于centos - 在 centos 7 中安装 Ganglia 失败(rrd create in -rrd ... no),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47085928/