make all - error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
braulio
Posts: 1
Joined: Fri Apr 13, 2012 8:57 am

make all - error

Post 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
cchang
Posts: 5
Joined: Thu Apr 19, 2012 4:00 pm

Re: make all - error

Post 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?
cchang
Posts: 5
Joined: Thu Apr 19, 2012 4:00 pm

Re: make all - error

Post 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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: make all - error

Post by agriffin »

Glad you got things figured out. Thanks for posting the solution for everyone!
Locked