标签:
[root@localhost sbin]# ldd statusmap.cgi linux-vdso.so.1 => (0x00007fffc9ffd000) libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002b7199006000) libiconv.so.2 => not found libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x0000003826e00000) libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x0000003825a00000) libz.so.1 => /lib64/libz.so.1 (0x000000381ba00000) libm.so.6 => /lib64/libm.so.6 (0x000000381b600000) libc.so.6 => /lib64/libc.so.6 (0x000000381aa00000) libXpm.so.4 => /usr/lib64/libXpm.so.4 (0x000000381be00000) libX11.so.6 => /usr/lib64/libX11.so.6 (0x0000003824200000) libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x0000003829200000) libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x0000003826200000) /lib64/ld-linux-x86-64.so.2 (0x000000381a600000) libXau.so.6 => /usr/lib64/libXau.so.6 (0x0000003822e00000) libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x0000003822a00000) libdl.so.2 => /lib64/libdl.so.2 (0x000000381ae00000) libexpat.so.0 => /lib64/libexpat.so.0 (0x0000003825e00000)
在我这里显示的结果发现 libiconv.so.2 => not found
到http://www.gnu.org/software/libiconv/下载libiconv库
$ ./configure --prefix=/usr/local $ make $ make install
然后执行
ln -sf /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2 ldconfig
[root@localhost sbin]# ldd statusmap.cgi linux-vdso.so.1 => (0x00007fff79bfd000) libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002b3196bff000) libiconv.so.2 => /usr/lib/libiconv.so.2 (0x00002b3196e53000) libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x0000003826e00000) libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x0000003825a00000) libz.so.1 => /lib64/libz.so.1 (0x000000381ba00000) libm.so.6 => /lib64/libm.so.6 (0x000000381b600000) libc.so.6 => /lib64/libc.so.6 (0x000000381aa00000) libXpm.so.4 => /usr/lib64/libXpm.so.4 (0x000000381be00000) libX11.so.6 => /usr/lib64/libX11.so.6 (0x0000003824200000) libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x0000003829200000) libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x0000003826200000) /lib64/ld-linux-x86-64.so.2 (0x000000381a600000) libXau.so.6 => /usr/lib64/libXau.so.6 (0x0000003822e00000) libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x0000003822a00000) libdl.so.2 => /lib64/libdl.so.2 (0x000000381ae00000) libexpat.so.0 => /lib64/libexpat.so.0 (0x0000003825e00000
[root@localhost sbin]# ldd statusmap.cgi
Nagios安装完后status map,trends等页面访问出错之解决
标签:
原文地址:http://www.cnblogs.com/wuxie1989/p/5508534.html