Troubles compiling with C

Frank, Jason JasonFrank at srcp.com
Mon May 22 22:30:29 CEST 2006


Yes, you should have gcc installed in /usr/bin.  It's in your path (from the which output) but it's not here.

________________________________

From: Scott Bierma [mailto:sbierma at grid4.com] 
Sent: Monday, May 22, 2006 3:29 PM
To: Frank, Jason; 'Masopust, Christian'; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Troubles compiling with C



[root at marge root]# which gcc

/usr/bin/which: no gcc in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:                                                                             /usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)

[root at marge root]#

 

This would appear to support what you are saying,huh?

 

 

Scott Bierma

SoftSwitch Technician

(248)244-8100 ext 306

sbierma at grid4.com

 

VOICE │ INTERNET │ PRIVATE DATA │ MANAGED SOLUTIONS

 

________________________________

From: Frank, Jason [mailto:JasonFrank at srcp.com] 
Sent: Monday, May 22, 2006 4:21 PM
To: Scott Bierma; Masopust, Christian; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Troubles compiling with C

 

You didn't give us the output of "which gcc"  But from your package list, I would surmise that you can't compile with C because you have no C compiler installed.  Try installing the gcc package, what you have listed are support libraries.

 

________________________________

From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Scott Bierma
Sent: Monday, May 22, 2006 3:19 PM
To: 'Masopust, Christian'; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Troubles compiling with C

[root at marge root]# rpm -qa | grep gcc

compat-gcc-c++-7.3-2.96.128

compat-gcc-7.3-2.96.128

libgcc-3.2.3-54

 

 

 

Scott Bierma

SoftSwitch Technician

(248)244-8100 ext 306

sbierma at grid4.com



VOICE │ INTERNET │ PRIVATE DATA │ MANAGED SOLUTIONS

 

________________________________

From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Masopust, Christian
Sent: Monday, May 22, 2006 3:55 PM
To: Scott Bierma; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Troubles compiling with C

 

could you run "which gcc" ?  what does "rpm -qa | grep gcc" show?

 

chris

 

--
"I sense much NT in you, NT leads to Blue Screen.
Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside."

- Unknown Unix Jedi 

 

	 

	
________________________________


	From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Scott Bierma
	Sent: Monday, May 22, 2006 9:53 PM
	To: nagios-users at lists.sourceforge.net
	Subject: [Nagios-users] Troubles compiling with C

	Can anyone help us with installing Nagios?

	 

	At first glance it seems that there was no C compiler to build the program install, but I double checked and the packages are there. When running the configure script per the Installation Directions we get the following error:

	 

	[root at marge nagios]# ./configure --prefix=/usr/local/nagios

	checking for a BSD-compatible install... /usr/bin/install -c

	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 cc... no

	checking for cl... no

	configure: error: no acceptable C compiler found in $PATH

	See `config.log' for more details.

	 

	Here is the config.log file:

	 

	This file contains any messages produced by compilers while

	running configure, to aid debugging if configure makes a mistake.

	 

	It was created by configure, which was

	generated by GNU Autoconf 2.59.  Invocation command line was

	 

	  $ ./configure --prefix=/usr/local/nagios

	 

	## --------- ##

	## Platform. ##

	## --------- ##

	 

	hostname = marge.grid4.com

	uname -m = i686

	uname -r = 2.4.21-40.ELsmp

	uname -s = Linux

	uname -v = #1 SMP Thu Feb 2 22:22:39 EST 2006

	 

	/usr/bin/uname -p = unknown

	/bin/uname -X     = unknown

	 

	/bin/arch              = i686

	/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: /usr/X11R6/bin

	PATH: /root/bin

	 

	 

	## ----------- ##

	## Core tests. ##

	## ----------- ##

	 

	configure:1356: checking for a BSD-compatible install

	configure:1411: result: /usr/bin/install -c

	configure:1430: checking build system type

	configure:1448: result: i686-pc-linux-gnu

	configure:1456: checking host system type

	configure:1470: result: i686-pc-linux-gnu

	configure:1525: checking for gcc

	configure:1554: result: no

	configure:1605: checking for cc

	configure:1634: result: no

	configure:1647: checking for cc

	configure:1693: result: no

	configure:1746: checking for cl

	configure:1775: result: no

	configure:1789: error: no acceptable C compiler found in $PATH

	See `config.log' for more details.

	 

	## ---------------- ##

	## Cache variables. ##

	## ---------------- ##

	 

	ac_cv_build=i686-pc-linux-gnu

	ac_cv_build_alias=i686-pc-linux-gnu

	ac_cv_env_CC_set=

	ac_cv_env_CC_value=

	ac_cv_env_CFLAGS_set=

	ac_cv_env_CFLAGS_value=

	ac_cv_env_CPPFLAGS_set=

	ac_cv_env_CPPFLAGS_value=

	ac_cv_env_CPP_set=

	ac_cv_env_CPP_value=

	ac_cv_env_LDFLAGS_set=

	ac_cv_env_LDFLAGS_value=

	ac_cv_env_build_alias_set=

	ac_cv_env_build_alias_value=

	ac_cv_env_host_alias_set=

	ac_cv_env_host_alias_value=

	ac_cv_env_target_alias_set=

	ac_cv_env_target_alias_value=

	ac_cv_host=i686-pc-linux-gnu

	ac_cv_host_alias=i686-pc-linux-gnu

	ac_cv_path_install='/usr/bin/install -c'

	 

	## ----------------- ##

	## Output variables. ##

	## ----------------- ##

	 

	BASEEXTRALIBS=''

	BROKERLIBS=''

	BROKER_H=''

	BROKER_LDFLAGS=''

	BROKER_O=''

	CC=''

	CFLAGS=''

	CGIEXTRAS=''

	COMMAND_OPTS=''

	CPP=''

	CPPFLAGS=''

	DEFS=''

	ECHO_C=''

	ECHO_N='-n'

	ECHO_T=''

	EGREP=''

	EXEEXT=''

	GDLIBS=''

	INITDIR=''

	INSTALL='/usr/bin/install -c'

	INSTALLPERLSTUFF=''

	INSTALL_DAINSTALL_OPTS=''

	INSTALL_PROGRAM='${INSTALL}'

	INSTALL_SCRIPT='${INSTALL}'

	LDFLAGS=''

	LIBOBJS=''

	LIBS=''

	LTLIBOBJS=''

	MAIL_PROG=''

	MOD_CFLAGS=''

	MOD_LDFLAGS=''

	OBJEXT=''

	PACKAGE_BUGREPORT=''

	PACKAGE_NAME=''

	PACKAGE_STRING=''

	PACKAGE_TARNAME=''

	PACKAGE_VERSION=''

	PACKDIR=''

	PATH_SEPARATOR=':'

	PATH_TO_TRACEROUTE=''

	PERL=''

	PERLDIR=''

	PERLLIBS=''

	PERLXSI_O=''

	SET_MAKE=''

	SHELL='/bin/sh'

	SNPRINTF_O=''

	SOCKETLIBS=''

	STRIP=''

	THREADLIBS=''

	VERSION=''

	XCDC=''

	XCDH=''

	XDDC=''

	XDDH=''

	XODC=''

	XODH=''

	XPDC=''

	XPDH=''

	XRDC=''

	XRDH=''

	XSDC=''

	XSDH=''

	ac_ct_CC=''

	bindir='${exec_prefix}/bin'

	build='i686-pc-linux-gnu'

	build_alias=''

	build_cpu='i686'

	build_os='linux-gnu'

	build_vendor='pc'

	cgiurl=''

	command_grp=''

	command_user=''

	datadir='${prefix}/share'

	exec_prefix='NONE'

	host='i686-pc-linux-gnu'

	host_alias=''

	host_cpu='i686'TA='${INSTALL} -m 644'

	host_os='linux-gnu'

	host_vendor='pc'

	htmurl=''

	includedir='${prefix}/include'

	infodir='${prefix}/info'

	init_dir=''

	libdir='${exec_prefix}/lib'

	libexecdir='${exec_prefix}/libexec'

	localstatedir='${prefix}/var'

	lockfile=''

	mandir='${prefix}/man'

	nagios_grp=''

	nagios_name=''

	nagios_user=''

	nagiostats_name=''

	oldincludedir='/usr/include'

	prefix='/usr/local/nagios'

	program_transform_name='s,x,x,'

	sbindir='${exec_prefix}/sbin'

	sharedstatedir='${prefix}/com'

	sysconfdir='${prefix}/etc'

	target_alias=''

	 

	## ----------- ##

	## confdefs.h. ##

	## ----------- ##

	 

	#define PACKAGE_BUGREPORT ""

	#define PACKAGE_NAME ""

	#define PACKAGE_STRING ""

	#define PACKAGE_TARNAME ""

	#define PACKAGE_VERSION ""

	 

	configure: exit 1

	 

	 

	Scott Bierma

	SoftSwitch Technician

	(248)244-8100 ext 306

	sbierma at grid4.com

	

	VOICE │ INTERNET │ PRIVATE DATA │ MANAGED SOLUTIONS

	 


This message (including any attachments) may contain confidential or otherwise privileged information and is intended only for the individual(s) to which it is addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message or that arise as a result of e-mail transmission. If verification is required please request a hard-copy version from the sender. 

SOURCECORP, Incorporated 
www.srcp.com

	
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060522/dbb9713b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3739 bytes
Desc: image001.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060522/dbb9713b/attachment.jpg>


More information about the Users mailing list