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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-25-2003, 08:12 AM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 2
Rep:
|
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
|
|
|
08-25-2003, 08:15 AM
|
#2
|
Senior Member
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263
Rep:
|
what are the last fw lines of your config.log
|
|
|
08-25-2003, 07:11 PM
|
#3
|
LQ Newbie
Registered: Aug 2003
Posts: 2
Original Poster
Rep:
|
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
|
|
|
08-25-2003, 07:30 PM
|
#4
|
Senior Member
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|