在這之前已經執行yum -y install wget gcc gcc-c++ make automake autoconf patch
結果
./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 `/root/cacti-spine-1.1.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
如果只是安裝這些是不夠的:yum -y install wget gcc gcc-c++ make automake autoconf patch
每次組態(configure)的結果會紀錄在這個檔案config.log, 看看少了什麼:
`See config.log' for more details``
檔案中會指出少掉的套件.
基本上, 您應該還需要:
yum install net-snmp-devel mysql-devel openssl-devel libtool dos2unix help2man
感謝,那關於rrd沒生成怎麼解決呢...
您是指rrd沒安裝? yum install rrdtools
請看第二篇教學
不是,我在cacti安裝的網頁有確認,是有抓到路徑的,可是連centos自己的rrd都沒升成出來,造成圖表出現error opening '/usr/share/cacti/rra/local_linux_ma.rrd': NO such file or directory
也確定資料夾權限有開放