make [all] error错误

Q:安装nagios-plugins-1.4.16时make一直过不去报错如下
   check_http.c: In function ‘process_arguments’:
   check_http.c:312: error: ‘ssl_version’ undeclared (first use in this function)
   check_http.c:312: error: (Each undeclared identifier is reported only once
   check_http.c:312: error: for each function it appears in.)
   make[2]: *** [check_http.o] Error 1
   make[2]: Leaving directory `/root/nagios-plugins-1.4.16/plugins'
   make[1]: *** [all-recursive] Error 1
   make[1]: Leaving directory `/root/nagios-plugins-1.4.16'
   make: *** [all] Error 2

A:根据提示缺少ssl
     #yum -y install gd gd-devel *openssl*

     安装完清除之前残余make信息,重新编译安装
  # make clean
     # ./configure --prefix=/usr/local/nagios
     # make

Q:安装nagios时执行make all 出现如下错误
   xtcmd_list.o: could not read symbols: File in wrong format
   collect2: ld returned 1 exit status
   make[1]: *** [cmd.cgi] Error 1
   make[1]: Leaving directory `/var/tmp/nagios-3.2.3/cgi'
   make: *** [all] Error 2
A:
出现此错误的原因是没有找到软件目录下的cmd.cgi文件,根据提示到cgi 目录下找cmd.cgi,发现只有cmd.c这个文件,于是修改了cmd.c为cmd.cgi 返回上级目录后,直接make clean && make all。问题就解决!


你可能感兴趣的:(error,error,Make,Make,all)