查看./configure
成都創(chuàng)新互聯(lián)-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設(shè)、高性價(jià)比山陽(yáng)網(wǎng)站開(kāi)發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫(kù),直接使用。一站式山陽(yáng)網(wǎng)站制作公司更省心,省錢(qián),快速模板網(wǎng)站建設(shè)找我們,業(yè)務(wù)覆蓋山陽(yáng)地區(qū)。費(fèi)用合理售后完善,10余年實(shí)體公司更值得信賴。
checking for main in -liconv... no
checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... no
checking for gdImagePng in -lgd (order 3)... no
checking for gdImagePng in -lgd (order 4)... no
*** GD, PNG, and/or JPEG libraries could not be located... *********
Boutell's GD library is required to compile the statusmap, trends
and histogram CGIs. Get it from http://www.boutell.com/gd/, compile
it, and use the --with-gd-lib and --with-gd-inc arguments to specify
the locations of the GD library and include files.
NOTE: In addition to the gd-devel library, you'll also need to make
sure you have the png-devel and jpeg-devel libraries installed
on your system.
NOTE: After you install the necessary libraries on your system:
1. Make sure /etc/ld.so.conf has an entry for the directory in
which the GD, PNG, and JPEG libraries are installed.
2. Run 'ldconfig' to update the run-time linker options.
3. Run 'make clean' in the Nagios distribution to clean out
any old references to your previous compile.
4. Rerun the configure script.
NOTE: If you can't get the configure script to recognize the GD libs
on your system, get over it and move on to other things. The
CGIs that use the GD libs are just a small part of the entire
Nagios package. Get everything else working first and then
revisit the problem. Make sure to check the nagios-users
mailing list archives for possible solutions to GD library
problems when you resume your troubleshooting.
********************************************************************
說(shuō)明沒(méi)有安裝gd或者gd-devel png jpeg ,安裝gd 沒(méi)看到gd-devel yum 安裝 iso鏡像里沒(méi)有g(shù)d-devel包于是手動(dòng)下載的,但是yum 是能找到gd-devel 的依賴關(guān)系的,我就把下載的gd-devel 的rpm包放到/var/cache/yum/x86_64/6/Server/packages 下再yum install gd-devel 就可以了
之后就./configure --prefix=/usr/local/nagios
只要執(zhí)行上面的就可以 ,nagios 默認(rèn)就會(huì)編譯statsusmap.cgi 和trends.cgi ,只是如果gd gd-devel 不在就不編譯了,
然后執(zhí)行make cgis && make install 就ok了,不用重新編譯nagios 了,只編譯cgi就可以了