CentOS 5.4 can't update Nagios - configure 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
kolyan007
Posts: 6
Joined: Wed Oct 12, 2011 5:44 pm

CentOS 5.4 can't update Nagios - configure error

Post by kolyan007 »

Hi,

I'm trying to update Nagios core 3.2.3 to 3.3.1 on CentOS 5.4, but command
# ./configure --with-command-group=nagcmd from folder nagios-3.3.1
reply me:

checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

Omitted config.log:
/bin/uname -X = unknown
/bin/arch= x86_64
/usr/bin/arch -k= unknown
/usr/convex/getsysinfo = unknown
hostinfo= unknown
/bin/machine= unknown
/usr/bin/oslevel= unknown
/bin/universe= unknown
PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1359: checking for a BSD-compatible install
configure:1414: result: /usr/bin/install -c
configure:1433: checking build system type
configure:1451: result: x86_64-unknown-linux-gnu
configure:1459: checking host system type
configure:1473: result: x86_64-unknown-linux-gnu
configure:1528: checking for gcc
configure:1557: result: no
configure:1608: checking for cc
configure:1637: result: no
configure:1650: checking for cc
configure:1696: result: no
configure:1749: checking for cl
configure:1778: result: no
configure:1792: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

Also command "make all" failed as well:
# make all
make: *** No rule to make target `all'. Stop.

Hope for your help,
Nick
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: CentOS 5.4 can't update Nagios - configure error

Post by jsmurphy »

It appears you have no C compiler installed, running yum install gcc should fix this for you.
kolyan007
Posts: 6
Joined: Wed Oct 12, 2011 5:44 pm

Re: CentOS 5.4 can't update Nagios - configure error

Post by kolyan007 »

Thanks a lot! Excellent and correct suggestion!

Cheers
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: CentOS 5.4 can't update Nagios - configure error

Post by jsmurphy »

You are welcome :)
Locked