nagios4.0.2maptrends无法打开-创新互联
查看./configure
创新互联主营宜城网站建设的网络公司,主营网站建设方案,重庆APP开发公司,宜城h5微信小程序定制开发搭建,宜城网站营销推广欢迎宜城等地区企业咨询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.
********************************************************************
说明没有安装gd或者gd-devel png jpeg ,安装gd 没看到gd-devel yum 安装 iso镜像里没有gd-devel包于是手动下载的,但是yum 是能找到gd-devel 的依赖关系的,我就把下载的gd-devel 的rpm包放到/var/cache/yum/x86_64/6/Server/packages 下再yum install gd-devel 就可以了
之后就./configure --prefix=/usr/local/nagios
只要执行上面的就可以 ,nagios 默认就会编译statsusmap.cgi 和trends.cgi ,只是如果gd gd-devel 不在就不编译了,
然后执行make cgis && make install 就ok了,不用重新编译nagios 了,只编译cgi就可以了
另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
分享名称:nagios4.0.2maptrends无法打开-创新互联
本文地址:http://myzitong.com/article/phjse.html