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 |
what are the last fw lines of your config.log
|
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 |
Quote:
find / 2>/dev/null | grep cc1 |
All times are GMT -5. The time now is 03:35 AM. |