免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3470 | 回复: 6
打印 上一主题 下一主题

安装openldap,不能编译error: C compiler cannot create executables [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-29 11:34 |只看该作者 |倒序浏览
[root@ftpserver openldap-2.3.9]# ./configure
Configuring OpenLDAP 2.3.9-Release ...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
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 configure arguments... done
checking for cc... cc
checking for ar... ar
checking for style of include used by make... GNU
checking for C compiler default output file name... configure: error: C compiler cannot create executables

论坛徽章:
0
2 [报告]
发表于 2005-12-29 11:37 |只看该作者
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

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

hostname = ftpserver
uname -m = i686
uname -r = 2.6.9-22.EL
uname -s = Linux
uname -v = #1 Mon Sep 19 18:20:28 EDT 2005

/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/kerberos/sbin
PATH: /usr/kerberos/bin
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: /opt/SUNWappserver/jdk/bin## ----------- ##
## Core tests. ##
## ----------- ##

configure:1614: checking build system type
configure:1632: result: i686-pc-linux-gnu
configure:1640: checking host system type
configure:1654: result: i686-pc-linux-gnu
configure:1662: checking target system type
configure:1676: result: i686-pc-linux-gnu
configure:1705: checking for a BSD-compatible install
configure:1760: result: /usr/bin/install -c
configure:1771: checking whether build environment is sane
configure:1814: result: yes
configure:1879: checking for gawk
configure:1895: found /bin/gawk
configure:1905: result: gawk
configure:1915: checking whether make sets $(MAKE)
configure:1935: result: yes
configure:2144: checking configure arguments
configure:3817: result: done
configure:3982: checking for cc
configure:3998: found /usr/bin/cc
configure:4008: result: cc
configure:4032: checking for ar
configure:4048: found /usr/bin/ar
configure:4058: result: ar
configure:4117: checking for style of include used by make
configure:4145: result: GNU
configure:4486: checking for C compiler version
configure:4489: cc --version </dev/null >&5
cc (GCC) 4.0.0 20050519 (Red Hat 4.0.0-
Copyright (C) 2005 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:4492: $? = 0
configure:4494: cc -v </dev/null >&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,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux
Thread model: posixgcc version 4.0.0 20050519 (Red Hat 4.0.0-
configure:4497: $? = 0
configure:4499: cc -V </dev/null >&5
cc: '-V' option must have argument
configure:4502: $? = 1
configure:4525: checking for C compiler default output file name
configure:4528: cc    conftest.c  >&5
cc: installation problem, cannot exec 'cc1': No such file or directory
configure:4531: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define OPENLDAP_PACKAGE "OpenLDAP"
| #define OPENLDAP_VERSION "2.3.9"
| #define LDAP_VENDOR_VERSION 20309
| #define LDAP_VENDOR_VERSION_MAJOR 2
| #define LDAP_VENDOR_VERSION_MINOR 3
| #define LDAP_VENDOR_VERSION_PATCH 9
| #define HAVE_MKVERSION 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:4570: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnuac_cv_build_alias=i686-pc-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_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_AR=ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=cc
ac_cv_prog_make_make_set=yes
ac_cv_shtool=build/shtool
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu

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

ACLOCAL='${SHELL} /tmp/openldap-2.3.9/build/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /tmp/openldap-2.3.9/build/missing --run tar'
AR='ar'
AS=''
AUTH_LIBS=''
AUTOCONF='${SHELL} /tmp/openldap-2.3.9/build/missing --run autoconf'
AUTOHEADER='${SHELL} /tmp/openldap-2.3.9/build/missing --run autoheader'
AUTOMAKE='${SHELL} /tmp/openldap-2.3.9/build/missing --run automake-1.9'
AWK='gawk'
BUILD_ACCESSLOG='no'
BUILD_BDB='no'
BUILD_DENYOP='no'
BUILD_DNSSRV='no'
BUILD_DYNGROUP='no'
BUILD_DYNLIST='no'
BUILD_HDB='no'
BUILD_LASTMOD='no'
BUILD_LDAP='no'
BUILD_LDBM='no'
BUILD_LIBS_DYNAMIC=''
BUILD_META='no'
BUILD_MONITOR='no'
BUILD_NULL='no'
BUILD_PASSWD='no'
BUILD_PERL='no'
BUILD_PPOLICY='no'
BUILD_PROXYCACHE='no'
BUILD_REFINT='no'
BUILD_RELAY='no'
BUILD_RETCODE='no'
BUILD_RWM='no'
BUILD_SHELL='no'
BUILD_SLAPD='no'
BUILD_SLAPI='no'
BUILD_SLURPD='no'
BUILD_SQL='no'
BUILD_SYNCPROV='no'
BUILD_UNIQUE='no'
BUILD_VALSORT='no'
CC='cc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
ECHO='echo'
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'
KRB4_LIBS=''
KRB5_LIBS=''
LDAP_LIBS=''
LDBM_LIBS=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBSLAPI=''
LIBSLAPITOOLS=''
LIBSRCS=''
LIBTOOL=''
LN_S=''
LTHREAD_LIBS=''
LTLIBOBJS=''
LTSTATIC=''
LUTIL_LIBS=''
MAKEINFO='${SHELL} /tmp/openldap-2.3.9/build/missing --run makeinfo'
MODULES_LIBS=''
MOD_PERL_LDFLAGS=''
OBJDUMP=''
OBJEXT=''
OL_MKDEP=''
OL_MKDEP_FLAGS=''
       OPENLDAP_LIBRELEASE='2.3'
OPENLDAP_LIBVERSION='1:4:1'
OPENLDAP_RELEASE_DATE='2005/10/07'
PACKAGE='OpenLDAP'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERLBIN=''
PERL_CPPFLAGS=''
PLAT=''
RANLIB=''
SASL_LIBS=''
SET_MAKE=''
SHELL='/bin/sh'
SLAPD_DYNAMIC_BACKENDS=''
SLAPD_DYNAMIC_OVERLAYS=''
SLAPD_GMP_LIBS=''
SLAPD_LIBS=''
SLAPD_MODULES_CPPFLAGS=''
SLAPD_MODULES_LDFLAGS=''
SLAPD_NO_STATIC=''
SLAPD_PERL_LDFLAGS=''
SLAPD_SLAPI_DEPEND=''
SLAPD_SLP_LIBS=''
SLAPD_SQL_INCLUDES=''
SLAPD_SQL_LDFLAGS=''
SLAPD_SQL_LIBS=''
SLAPD_STATIC_BACKENDS='back-ldif'
SLAPD_STATIC_OVERLAYS=''
SLAPI_LIBS=''
SLURPD_LIBS=''
STRIP=''
TLS_LIBS=''
VERSION='2.3.9'
WITH_ACI_ENABLED=''
WITH_MODULES_ENABLED=''
WITH_SASL=''
WITH_TLS=''
WRAP_LIBS=''
ac_ct_AR=''
ac_ct_AS=''

ac_ct_DLLTOOL=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
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='/tmp/openldap-2.3.9/build/install-sh'
ldap_subdir='/openldap'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'
top_builddir='/tmp/openldap-2.3.9'

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

#define HAVE_MKVERSION 1
#define LDAP_VENDOR_VERSION 20309
#define LDAP_VENDOR_VERSION_MAJOR 2
#define LDAP_VENDOR_VERSION_MINOR 3
#define LDAP_VENDOR_VERSION_PATCH 9
#define OPENLDAP_PACKAGE "OpenLDAP"
#define OPENLDAP_VERSION "2.3.9"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 77

论坛徽章:
0
3 [报告]
发表于 2005-12-29 12:25 |只看该作者
硬盘空间还有剩余吗?

论坛徽章:
0
4 [报告]
发表于 2005-12-29 13:59 |只看该作者
空间肯定没问题啊

论坛徽章:
0
5 [报告]
发表于 2006-01-04 09:35 |只看该作者
这个问题。。。。。。。。。。

论坛徽章:
0
6 [报告]
发表于 2006-01-04 10:10 |只看该作者
#line 2822 "configure"
#include "confdefs.h"

int main() {
return __EMX__;
; return 0; }
configure:2845: checking how to run the C preprocessor
configure:2866: cc -E  conftest.c >/dev/null 2>conftest.out
cc: installation problem, cannot exec 'cc1': No such file or directory
configure: failed program was:
#line 2860 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
configure:2883: cc -E -traditional-cpp  conftest.c >/dev/null 2>conftest.out
cc: installation problem, cannot exec 'cc1': No such file or directory
configure: failed program was:
#line 2877 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
configure:2900: cc -nologo -E  conftest.c >/dev/null 2>conftest.out
cc: unrecognized option '-nologo'
cc: installation problem, cannot exec 'cc1': No such file or directory
configure: failed program was:
#line 2894 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
configure:2950: checking for gcc
configure:3063: checking whether the C compiler (cc   ) works
configure:3079: cc -o conftest    conftest.c  1>&5
cc: installation problem, cannot exec 'cc1': No such file or directory
configure: failed program was:

#line 3074 "configure"
#include "confdefs.h"

论坛徽章:
0
7 [报告]
发表于 2008-11-07 13:20 |只看该作者
编译的时候指定 CC=gcc 试试看
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP