Page 1 of 1

make all - error

Posted: Fri Apr 13, 2012 9:37 am
by braulio
Hello, everyone.

I tried installing Nagios 3.3.1 on a centos 6.2 x64.

Code: Select all

# cat /etc/centos-release
CentOS release 6.2 (Final)

Code: Select all

# Uname-r
2.6.32-220.7.1.el6.x86_64

Code: Select all

httpd-2.2.15-15.el6.centos.1.x86_64
php-5.3.3-3.el6_2.6.x86_64
gcc-4.4.6-3.el6.x86_64
gd-2.0.35-10.el6.x86_64
make-3.81-19.el6.x86_64
Run the Nagios configure script

Code: Select all

#. / configure - with-command-group = nagcmd
*** Configuration summary for nagios 3.3.1 07-25-2011 ***:

  General Options:
  -------------------------
         Nagios executable: nagios
         Nagios user / group: nagios, nagios
        Command user / group: nagios, nagcmd
             Embedded Perl: no
              Event Broker: yes
         Install $ {prefix}: / usr / local / nagios
                 Lock file: $ {prefix} / var / nagios.lock
    Check result directory: $ {prefix} / var / spool / checkresults
            Init directory: / etc / rc.d / init.d
   Apache conf.d directory: / etc / httpd / conf.d
              Mail program: / bin / mail
                   Host OS: linux-gnu

  Web Interface Options:
  ------------------------
                  HTML URL: http://localhost/nagios/
                   CGI URL: http://localhost/nagios/cgi-bin/
  Traceroute (used by WAP): / bin / traceroute


Review the options above for accuracy. If They look okay,
type 'make all' to compile the main program and CGIs.
Compile the Nagios source code output:

Code: Select all

# Make all
cd. / base && make
make [1]: Entering directory `/ root / nagios / base '
make [1]: *** No rule to make target `.. / include / locations.h ', needed by` broker.o'. Stop.
make [1]: Leaving directory `/ root / nagios / base '
make: *** [all] Error 2

I never never had this error on other installations, can help me?
thanks in advance

Re: make all - error

Posted: Thu Apr 19, 2012 4:06 pm
by cchang
I have this same error! I can't figure this out. It's frustrating because it should be a simple install based on the install guide. Did you get any luck trying to figure it out?

Re: make all - error

Posted: Thu Apr 19, 2012 4:35 pm
by cchang
Ok, I found out how to fix it. When you run the previous command to configure, "./configure --with-command-group=nagcmd" look for any errors. For myself, I didn't have Perl installed. Looking at other support forum, another guy didn't have ssl headers. Whatever error you find in the configure command needs to be fixed before the make all command will work with no errors.

Re: make all - error

Posted: Fri Apr 20, 2012 9:29 am
by agriffin
Glad you got things figured out. Thanks for posting the solution for everyone!