24小时热门版块排行榜    

查看: 839  |  回复: 0

yuhua6613

银虫 (小有名气)

[求助] rhle5.3下安装lam时报错error:c compiler cannot create executables

一开始装源代码的软件时发现linux中没有gcc,于是从光盘中拷取rpm包进行了安装,用yum list gcc命令查看,显示gcc已经安装了,rpm -qa|grep gcc查看出现15个文件,应该装全了吧。我装的是gcc-4.1.2.可是./configure LAM的时候出现configure:3099:error: c compiler cannot create executables.根据网上的资料我觉得可能是gcc的路径不对,所以找不到cc1.可是路径我不会设置。刚开始接触linux,请高手指教!

下面贴出config.log中的内容

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=/home/xuhong/yuhua/lam --with-rsh=ssh-x

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

hostname = localhost.localdomain
uname -m = x86_64
uname -r = 2.6.18-128.el5xen
uname -s = Linux
uname -v = #1 SMP Wed Dec 17 12:01:40 EST 2008

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/kerberos/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /home/xuhong/g03/bsd
PATH: /home/xuhong/g03/private
PATH: /home/xuhong/g03
PATH: /home/xuhong/bin
PATH: /home/xuhong/g03/bsd
PATH: /home/xuhong/g03/private
PATH: /home/xuhong/g03
引用回帖:
g03是机子上已经安装过的Gaussian03,为什么这个PATH到g03里去了啊,应该不对的吧

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

configure:1730: checking for a BSD-compatible install
configure:1785: result: /usr/bin/install -c
configure:1796: checking whether build environment is sane
configure:1839: result: yes
configure:1904: checking for gawk
configure:1920: found /usr/bin/gawk
configure:1930: result: gawk
configure:1940: checking whether make sets $(MAKE)
configure:1960: result: yes
configure:2124: builddir: /home/xuhong/yuhua/lam-7.1.4
configure:2126: srcdir: /home/xuhong/yuhua/lam-7.1.4
configure:2162: checking build system type
configure:2180: result: x86_64-unknown-linux-gnu
configure:2208: checking host system type
configure:2222: result: x86_64-unknown-linux-gnu
configure:2670: checking if want debugging output support
configure:2684: result: no
configure:2745: checking for gcc
configure:2761: found /usr/bin/gcc
configure:2771: result: gcc
configure:3015: checking for C compiler version
configure:3018: gcc --version &5
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
Copyright (C) 2006 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:3021: $? = 0
configure:3023: gcc -v &5
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
configure:3026: $? = 0
configure:3028: gcc -V &5
gcc: '-V' option must have argument
configure:3031: $? = 1
configure:3054: checking for C compiler default output file name
configure:3057: gcc    conftest.c  >&5
gcc: error trying to exec 'cc1': execvp: No such file or directory
configure:3060: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define LAM_MAJOR_VERSION 7
| #define LAM_MINOR_VERSION 1
| #define LAM_RELEASE_VERSION 4
| #define LAM_ALPHA_VERSION 0
| #define LAM_BETA_VERSION 0
| #define LAM_SVN_VERSION 0
| #define LAM_VERSION "7.1.4"
| #define LAM_DEPENDENCY_PREFIX "/home/xuhong/yuhua/lam"
| #define LAM_ARCH "x86_64-unknown-linux-gnu"
| #define LAM_WANT_DEBUG 0
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3099: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_build_alias=x86_64-unknown-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_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXXLDFLAGS_set=
ac_cv_env_CXXLDFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FC_set=
ac_cv_env_FC_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_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=x86_64-unknown-linux-gnu
ac_cv_host_alias=x86_64-unknown-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /home/xuhong/yuhua/lam-7.1.4/config/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/xuhong/yuhua/lam-7.1.4/config/missing --run tar'
AR=''
AUTOCONF='${SHELL} /home/xuhong/yuhua/lam-7.1.4/config/missing --run autoconf'
AUTOHEADER='${SHELL} /home/xuhong/yuhua/lam-7.1.4/config/missing --run autoheader'
AUTOMAKE='${SHELL} /home/xuhong/yuhua/lam-7.1.4/config/missing --run automake-1.9'
AWK='gawk'
CASE_SENSITIVE_FS_FALSE=''
CASE_SENSITIVE_FS_TRUE=''
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CFLAGS_WITHOUT_OPTFLAGS=''
CLEANFILES='*~'
CP=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXCPPFLAGS=''
CXXDEPMODE=''
CXXFLAGS=''
CXXLDFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_LDFLAGS=''
F77=''
F77_BUILD_DIR=''
F77_LTPLIB=''
FC=''
FFLAGS=''
IMPID_DIR=''
IMPI_DIR=''
IMPI_LIB=''
IMPI_OBJS=''
IMPI_SERVER=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LAM_ALPHA_VERSION='0'
LAM_BETA_VERSION='0'
LAM_BINDIR='/home/xuhong/yuhua/lam/bin'
LAM_CONFIGURE_DATE='Tue Jun  5 21:42:18 CST 2012'
LAM_CONFIGURE_HOST='localhost.localdomain'
LAM_CONFIGURE_USER='xuhong'
LAM_CXX_TEMPLATE_REPOSITORY=''
LAM_EXEC_PREFIX='/home/xuhong/yuhua/lam'
LAM_INDEXOF_FORTRAN_INTEGER8=''
LAM_INDEXOF_FORTRAN_REAL16=''
LAM_MAJOR_VERSION='7'
LAM_MANDIR='/home/xuhong/yuhua/lam/man'
LAM_MINOR_VERSION='1'
LAM_PREFIX='/home/xuhong/yuhua/lam'
LAM_RELEASE_VERSION='4'
LAM_SSI_boot_ALL_SUBDIRS=''
LAM_SSI_boot_DYNAMIC_SUBDIRS=''
LAM_SSI_boot_STATIC_LTLIBS=''
LAM_SSI_boot_STATIC_SUBDIRS=''
LAM_SSI_coll_ALL_SUBDIRS=''
LAM_SSI_coll_DYNAMIC_SUBDIRS=''
LAM_SSI_coll_STATIC_LTLIBS=''
LAM_SSI_coll_STATIC_SUBDIRS=''
LAM_SSI_crlam_ALL_SUBDIRS=''
LAM_SSI_crlam_DYNAMIC_SUBDIRS=''
LAM_SSI_crlam_STATIC_LTLIBS=''
LAM_SSI_crlam_STATIC_SUBDIRS=''
LAM_SSI_crmpi_ALL_SUBDIRS=''
LAM_SSI_crmpi_DYNAMIC_SUBDIRS=''
LAM_SSI_crmpi_STATIC_LTLIBS=''
LAM_SSI_crmpi_STATIC_SUBDIRS=''
LAM_SSI_rpi_ALL_SUBDIRS=''
LAM_SSI_rpi_DYNAMIC_SUBDIRS=''
LAM_SSI_rpi_STATIC_LTLIBS=''
LAM_SSI_rpi_STATIC_SUBDIRS=''
LAM_SVN_VERSION='0'
LAM_TOP_BUILDDIR='/home/xuhong/yuhua/lam-7.1.4'
LAM_TOP_SRCDIR='/home/xuhong/yuhua/lam-7.1.4'
LAM_VERSION='7.1.4'
LAM_WANT_DARWIN7MALLOC_FALSE=''
LAM_WANT_DARWIN7MALLOC_TRUE=''
LAM_WANT_INSTALL_MPIEXEC_FALSE=''
LAM_WANT_INSTALL_MPIEXEC_TRUE=''
LAM_WANT_PTMALLOC2_FALSE=''
LAM_WANT_PTMALLOC2_TRUE=''
LAM_WANT_PTMALLOC_FALSE=''
LAM_WANT_PTMALLOC_TRUE=''
LDFLAGS=''
LIBLAM_EXTRA_LDFLAGS=''
LIBLAM_EXTRA_LIBS=''
LIBLTDL=''
LIBLTDL_SUBDIR=''
LIBMPI_EXTRA_LDFLAGS=''
LIBMPI_EXTRA_LIBS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTDLINCL=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/xuhong/yuhua/lam-7.1.4/config/missing --run makeinfo'
MPIF_H_PMPI_W_FUNCS=''
OBJEXT=''
PACKAGE='lam'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
RM=''
ROMIO_ARCH_FLAGS=''
ROMIO_USER_FLAGS=''
SET_MAKE=''
SHELL='/bin/sh'
SHELL_CMD=''
STRIP=''
TOTALVIEW_DEBUG_FLAGS=''
TOTALVIEW_DLL_DIR=''
VERSION='7.1.4'
WANT_CPPFILE_FALSE=''
WANT_CPPFILE_TRUE=''
WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE=''
WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE=''
WANT_FORTRAN_FALSE=''
WANT_FORTRAN_TRUE=''
WANT_IMPI_BUILD_FALSE=''
WANT_IMPI_BUILD_TRUE=''
WANT_LIBLTDL_FALSE=''
WANT_LIBLTDL_TRUE=''
WANT_MPI2CPP_FALSE=''
WANT_MPI2CPP_TRUE=''
WANT_MPI_STUBS_FALSE=''
WANT_MPI_STUBS_TRUE=''
WANT_PREFIX_MEMCPY_FALSE=''
WANT_PREFIX_MEMCPY_TRUE=''
WANT_PROFILE_BUILD_FALSE=''
WANT_PROFILE_BUILD_TRUE=''
WANT_ROMIO_FALSE=''
WANT_ROMIO_TRUE=''
WANT_TRILLIUM_INSTALL_FALSE=''
WANT_TRILLIUM_INSTALL_TRUE=''
WRAPPER_EXTRA_CFLAGS=''
WRAPPER_EXTRA_CXXFLAGS=''
WRAPPER_EXTRA_FFLAGS=''
WRAPPER_EXTRA_LDFLAGS=''
WRAPPER_EXTRA_LIBS=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
ac_prefix_program=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${prefix}/share'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/xuhong/yuhua/lam-7.1.4/config/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/home/xuhong/yuhua/lam'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define LAM_ALPHA_VERSION 0
#define LAM_ARCH "x86_64-unknown-linux-gnu"
#define LAM_BETA_VERSION 0
#define LAM_DEPENDENCY_PREFIX "/home/xuhong/yuhua/lam"
#define LAM_MAJOR_VERSION 7
#define LAM_MINOR_VERSION 1
#define LAM_RELEASE_VERSION 4
#define LAM_SVN_VERSION 0
#define LAM_VERSION "7.1.4"
#define LAM_WANT_DEBUG 0
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 77
金币不多,希望高手不吝赐教啊!感谢万分!
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

相关版块跳转 我要订阅楼主 yuhua6613 的主题更新
信息提示
请填处理意见