LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-21-2004, 05:12 AM   #1
jimmax777
LQ Newbie
 
Registered: Aug 2003
Location: Mumbai, India
Distribution: Red Hat 9
Posts: 26

Rep: Reputation: 15
error: C compiler cannot create executables


Hello Geeks,

I am having this problem when I am installing vpopmail. It doesnt configure. Though it creates a config.log file which I am attaching below. If you can help with the problem then it will be great. I think i have recompiled my kernel from 2.4.20 to 2.4.26 and could this be a problem? I am using a RedHat 9 Version of the operating system.

Can you please guide me? I have also included the config.log file which was generated during the compile process.

The ./configure command was for the vpopmail v5.4.7 and the command was as below

./configure --enable-logging=p --enable-auth-module=mysql --disable-passwd --enable-clear-passwd --disable-many-domains --enable-auth-logging --enable-mysql-logging --enable-valias --disable-mysql-limits


The output was as below:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
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 gawk... (cached) gawk
checking for gcc... colorgcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.



and the output of the config.log file is as below


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by vpopmail configure 5.4.7, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure --enable-logging=p --enable-auth-module=mysql --disable-passwd --enable-clear-passwd --disable-many-domains --enable-auth-logging --enable-mysql-logging --enable-valias --disable-mysql-limits

## --------- ##
## Platform. ##
## --------- ##

hostname = advantage.tech
uname -m = i686
uname -r = 2.4.26-14jul
uname -s = Linux
uname -v = #1 Wed Jul 14 11:33:59 LKT 2004

/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/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:1364: checking for a BSD-compatible install
configure:1418: result: /usr/bin/install -c
configure:1429: checking whether build environment is sane
configure:1472: result: yes
configure:1505: checking for gawk
configure:1521: found /bin/gawk
configure:1531: result: gawk
configure:1541: checking whether make sets $(MAKE)
configure:1561: result: yes
configure:1713: checking build system type
configure:1731: result: i686-pc-linux-gnu
configure:1739: checking host system type
configure:1753: result: i686-pc-linux-gnu
configure:1768: checking for gawk
configure:1794: result: gawk
configure:1850: checking for gcc
configure:1876: result: colorgcc
configure:2120: checking for C compiler version
configure:2123: colorgcc --version </dev/null >&5
./configure: line 1: colorgcc: command not found
configure:2126: $? = 127
configure:2128: colorgcc -v </dev/null >&5
./configure: line 1: colorgcc: command not found
configure:2131: $? = 127
configure:2133: colorgcc -V </dev/null >&5
./configure: line 1: colorgcc: command not found
configure:2136: $? = 127
configure:2160: checking for C compiler default output
configure:2163: colorgcc conftest.c >&5
./configure: line 1: colorgcc: command not found
configure:2166: $? = 127
configure: failed program was:
| #line 2139 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "vpopmail"
| #define PACKAGE_TARNAME "vpopmail"
| #define PACKAGE_VERSION "5.4.7"
| #define PACKAGE_STRING "vpopmail 5.4.7"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "vpopmail"
| #define VERSION "5.4.7"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2205: error: C compiler cannot create executables
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=set
ac_cv_env_CC_value=colorgcc
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'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=colorgcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /downloads/qmailrocks/vpopmail-5.4.7/missing --run aclocal-1.6'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /downloads/qmailrocks/vpopmail-5.4.7/missing --run tar'
AUTOCONF='${SHELL} /downloads/qmailrocks/vpopmail-5.4.7/missing --run autoconf'
AUTOHEADER='${SHELL} /downloads/qmailrocks/vpopmail-5.4.7/missing --run autoheader'
AUTOMAKE='${SHELL} /downloads/qmailrocks/vpopmail-5.4.7/missing --run automake-1.6'
AWK='gawk'
CC='colorgcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /downloads/qmailrocks/vpopmail-5.4.7/missing --run makeinfo'
OBJEXT=''
PACKAGE='vpopmail'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='vpopmail'
PACKAGE_STRING='vpopmail 5.4.7'
PACKAGE_TARNAME='vpopmail'
PACKAGE_VERSION='5.4.7'
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_MYSQL=''
VERSION='5.4.7'
ac_ct_CC='colorgcc'
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__include=''
am__quote=''
auth_inc=''
auth_libs=''
authlib=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
domains_dir=''
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/downloads/qmailrocks/vpopmail-5.4.7/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
vpopgroup=''
vpopmaildir=''
vpopuser=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "vpopmail"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "vpopmail"
#define PACKAGE_STRING "vpopmail 5.4.7"
#define PACKAGE_TARNAME "vpopmail"
#define PACKAGE_VERSION "5.4.7"
#define VERSION "5.4.7"

configure: exit 77





I am stuck on this since a very long time. Please help on how to resolve this configuration.

Thanks

Jimmy
 
Old 12-21-2004, 05:43 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
This 'colorgcc', is it just a wrapper to colourize gcc output? You do have the real gcc installed?

In any event,
Code:
./configure: line 1: colorgcc: command not found
leads be to believe that colorgcc is not in your path.
 
Old 12-21-2004, 06:00 AM   #3
jimmax777
LQ Newbie
 
Registered: Aug 2003
Location: Mumbai, India
Distribution: Red Hat 9
Posts: 26

Original Poster
Rep: Reputation: 15
Cant find colorgcc

Well I thought the same but cant really figure out what the colorgcc is??? PLease can you advice. Well I used find as well as locate and there is no colorgcc on my machine. What is the application required? or should I uninstall the gcc version 3.2.2-5 and re-install?

Thanks again.

Jimmy
 
Old 12-21-2004, 06:52 AM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Ok, I did a search and colorgcc is indeed a wrapper for colourizing output, which apparantly is not installed. Give this a try:
Code:
# export CC=gcc
then try the configure again. This will tell the configure script to use 'gcc' as a compiler instead of 'colorgcc'

If this does not work then I do not know what to tell you, maybe try the reinstall.

BTW, gcc 3.22 is quite old (I am using version 3.3.4), so you may want to find a newer version.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: C++ compiler cannot create executables sys7em Slackware 2 10-30-2004 06:38 PM
error: C compiler cannot create executables lopette Linux - Software 4 09-10-2004 04:06 PM
error: C compiler cannot create executables bublebboy Linux - Newbie 8 06-14-2004 10:38 PM
error: C compiler cannot create executables shams Linux - Software 1 02-16-2004 07:23 PM
error: C compiler cannot create executables bublebboy Linux - Newbie 3 12-31-2003 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration