LinuxQuestions.org
Help answer threads with 0 replies.
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 08-25-2003, 07:12 AM   #1
So_What_Linux
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
C compiler fails when running the configure command


Dear Everyone,

I am currently trying to install Postgresql and Apache on my Red Hat Linux 8 system.

Unfortunately whenever I use the configure command I get an error related to my c compiler (please see the listing below). If anybody has any suggestions on how this can be fixed they will be greatly appreciated:

./configure --with-java --with-openssl=/usr/local/ssl --enable-debug
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... no
checking whether to build with recode support... no
checking whether NLS is wanted... no
checking for default port number... 5432
checking for default soft limit on number of connections... 32
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables

Thanks for your help

Regards

David
 
Old 08-25-2003, 07:15 AM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
what are the last fw lines of your config.log
 
Old 08-25-2003, 06:11 PM   #3
So_What_Linux
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Original Poster
Rep: Reputation: 0
More information

kev82,

My configure file looks like this:

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

It was created by PostgreSQL configure 7.3.2, which was
generated by GNU Autoconf 2.53. Invocation command line was

$ ./configure --with-java --with-openssl=/usr/local/ssl --enable-debug

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

hostname = localhost.localdomain
uname -m = i686
uname -r = 2.4.18-14
uname -s = Linux
uname -v = #1 Wed Sep 4 13:35:50 EDT 2002

/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
PATH: /usr/bin
PATH: /usr/local/jakarta-tomcat-4.1.24/bin
PATH: /usr/local/Ant/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1295: checking build system type
configure:1313: result: i686-pc-linux-gnuoldld
configure:1321: checking host system type
configure:1335: result: i686-pc-linux-gnuoldld
configure:1345: checking which template to use
configure:1444: result: linux
configure:1563: checking whether to build with 64-bit integer date/time support
configure:1594: result: no
configure:1600: checking whether to build with recode support
configure:1631: result: no
configure:1638: checking whether NLS is wanted
configure:1672: result: no
configure:1680: checking for default port number
configure:1709: result: 5432
configure:1727: checking for default soft limit on number of connections
configure:1756: result: 32
configure:1947: checking for gcc
configure:1963: found /usr/bin/gcc
configure:1973: result: gcc
configure:1992: checking for C compiler version
configure:1995: gcc --version </dev/null >&5
gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1998: $? = 0
configure:2000: gcc -v </dev/null >&5
Using built-in specs.
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
configure:2003: $? = 0
configure:2005: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:2008: $? = 1
configure:2034: checking for C compiler default output
configure:2037: gcc conftest.c >&5
gcc: installation problem, cannot exec `cc1': No such file or directory
configure:2040: $? = 1
configure: failed program was:
#line 2011 "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

;
return 0;
}
configure:2067: error: C compiler cannot create executables

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnuoldld
ac_cv_build_alias=i686-pc-linux-gnuoldld
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_DOCBOOKSTYLE_set=
ac_cv_env_DOCBOOKSTYLE_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-gnuoldld
ac_cv_host_alias=i686-pc-linux-gnuoldld
ac_cv_prog_ac_ct_CC=gcc

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

#define PACKAGE_NAME "PostgreSQL"
#define PACKAGE_TARNAME "postgresql"
#define PACKAGE_VERSION "7.3.2"
#define PACKAGE_STRING "PostgreSQL 7.3.2"
#define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
#define PG_VERSION "7.3.2"
#define DEF_PGPORT 5432
#define DEF_PGPORT_STR "5432"
#define DEF_MAXBACKENDS 32

configure: exit 77

Thanks for your help so far.

Regards

David
 
Old 08-25-2003, 06:30 PM   #4
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
Quote:
gcc: installation problem, cannot exec `cc1': No such file or directory
theres your problem, looks like you'll need to reinstall gcc, out of interest whats the output of

find / 2>/dev/null | grep cc1
 
  


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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 12:35 PM
***** 'configure' Command Fails **** grayram Linux - Newbie 11 11-27-2004 05:21 AM
C compiler when running configure mr_a_ali Linux - General 9 08-18-2004 07:29 AM
./configure cant find a compiler habitue Linux - Software 18 10-15-2003 03:34 PM

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

All times are GMT -5. The time now is 11:49 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