Koozali.org: home of the SME Server

Error when trying to compile Nagios Plugins

Offline ghorst352

  • *****
  • 180
  • +0/-0
Error when trying to compile Nagios Plugins
« on: November 22, 2011, 04:50:27 PM »
Hello,

I am currently running SME Server 7.5.1 on about 4 different servers on my network.  I am new to SME server and come from pretty much a Debian background.  I noticed that on all 4 servers when ever I try to compile a program using the './configure' command that I get the below error message:


[root@mail nagios-plugins-1.4.15]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

What doesn't make sense to me is the complicated answers you get to this issue on the internet? With Debian heck I just type apt-get gcc and its done deal, drink my coffee, and compile.  However I don't understand what the heck I'm suppose to do with SME server and compiling?  Some say download devtools some say dont, some say this, some say that, why is everything with SME so darn complicated or am I just unlucky with the answers I'm getting.

Thanks.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Error when trying to compile Nagios Plugins
« Reply #1 on: November 22, 2011, 05:05:34 PM »
hi

if you are an experienced linux user or sysadmin you should know that  having any compiler on a wan exposed server is not a smart idea.


SME is aimed to security, so the lack of compiling tools is a feature, is "by design"

you can install devtools any time you like and compile what you want/nedd.. just remember to remove them after you've finished

Offline ghorst352

  • *****
  • 180
  • +0/-0
Re: Error when trying to compile Nagios Plugins
« Reply #2 on: November 22, 2011, 05:44:11 PM »
After doing a yum search devtools i got the following:


Reading repository metadata in from local files


e-smith-devtools.noarch                  2.0.0-1.el4.sme        smeos
Matched from:
e-smith-devtools


e-smith-devtools.noarch                  2.0.0-2.el4.sme        smeupdates
Matched from:
e-smith-devtools


e-smith-devtools.noarch                  2.0.0-2.el4.sme        installed
Matched from:
e-smith-devtools


so it appears it was already installed so I guess my question is why can't I compile with devtools installed? 
« Last Edit: November 22, 2011, 05:49:37 PM by bhay3s »

Offline ghorst352

  • *****
  • 180
  • +0/-0
Re: Error when trying to compile Nagios Plugins
« Reply #3 on: November 22, 2011, 06:06:34 PM »
Nevermind,, I found the fix at http://wiki.contribs.org/Nagios_NRPE this explains how to install nrpe and the nagios plugins, what I have been looking for.  Next time I will browse the contribs wiki.  Thanks.

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Error when trying to compile Nagios Plugins
« Reply #4 on: November 25, 2011, 01:32:02 PM »
Moving to Contribs section of the Forums.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.