编译出错,帮忙看看。

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
封印
帖子: 95
注册时间: 2008-08-30 14:51

编译出错,帮忙看看。

#1

帖子 封印 » 2009-11-01 22:26

代码: 全选

yunfei@yunfei-pc:~/warzone2100-2.2.4$ sudo ./configure
[sudo] password for yunfei: 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: in `/home/yunfei/warzone2100-2.2.4':
configure: error: C compiler cannot create executables
See `config.log' for more details.
这个是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 Warzone 2100 configure 2.2.4, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ ./configure 

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

hostname = yunfei-pc
uname -m = i686
uname -r = 2.6.31-14-generic
uname -s = Linux
uname -v = #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009

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

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

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/X11R6/bin


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

configure:2071: checking for a BSD-compatible install
configure:2139: result: /usr/bin/install -c
configure:2150: checking whether build environment is sane
configure:2210: result: yes
configure:2351: checking for a thread-safe mkdir -p
configure:2390: result: /bin/mkdir -p
configure:2403: checking for gawk
configure:2433: result: no
configure:2403: checking for mawk
configure:2419: found /usr/bin/mawk
configure:2430: result: mawk
configure:2441: checking whether make sets $(MAKE)
configure:2463: result: yes
configure:2563: checking build system type
configure:2581: result: i686-pc-linux-gnu
configure:2603: checking host system type
configure:2618: result: i686-pc-linux-gnu
configure:2654: checking for style of include used by make
configure:2682: result: GNU
configure:2752: checking for gcc
configure:2768: found /usr/bin/gcc
configure:2779: result: gcc
configure:3011: checking for C compiler version
configure:3019: gcc --version >&5
Unable to exec gcc.real: No such file or directory
configure:3023: $? = 2
configure:3030: gcc -v >&5
Unable to exec gcc.real: No such file or directory
configure:3034: $? = 2
configure:3041: gcc -V >&5
Unable to exec gcc.real: No such file or directory
configure:3045: $? = 2
configure:3068: checking for C compiler default output file name
configure:3090: gcc    conftest.c  >&5
Unable to exec gcc.real: No such file or directory
configure:3094: $? = 2
configure:3132: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Warzone 2100"
| #define PACKAGE_TARNAME "warzone2100"
| #define PACKAGE_VERSION "2.2.4"
| #define PACKAGE_STRING "Warzone 2100 2.2.4"
| #define PACKAGE_BUGREPORT "http://wz2100.net/"
| #define PACKAGE "warzone2100"
| #define VERSION "2.2.4"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3138: error: in `/home/yunfei/warzone2100-2.2.4':
configure:3141: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_FOR_BUILD_set=
ac_cv_env_CPPFLAGS_FOR_BUILD_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_BUILD_set=
ac_cv_env_CXX_FOR_BUILD_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_FONTCONFIG_CFLAGS_set=
ac_cv_env_FONTCONFIG_CFLAGS_value=
ac_cv_env_FONTCONFIG_LIBS_set=
ac_cv_env_FONTCONFIG_LIBS_value=
ac_cv_env_FREETYPE_CFLAGS_set=
ac_cv_env_FREETYPE_CFLAGS_value=
ac_cv_env_FREETYPE_LIBS_set=
ac_cv_env_FREETYPE_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_OGGVORBIS_CFLAGS_set=
ac_cv_env_OGGVORBIS_CFLAGS_value=
ac_cv_env_OGGVORBIS_LIBS_set=
ac_cv_env_OGGVORBIS_LIBS_value=
ac_cv_env_OPENAL_CFLAGS_set=
ac_cv_env_OPENAL_CFLAGS_value=
ac_cv_env_OPENAL_LIBS_set=
ac_cv_env_OPENAL_LIBS_value=
ac_cv_env_PERL_set=
ac_cv_env_PERL_value=
ac_cv_env_PKGCONFIG_PREFIX_set=
ac_cv_env_PKGCONFIG_PREFIX_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_PNG_CFLAGS_set=
ac_cv_env_PNG_CFLAGS_value=
ac_cv_env_PNG_LIBS_set=
ac_cv_env_PNG_LIBS_value=
ac_cv_env_SDL_CFLAGS_set=
ac_cv_env_SDL_CFLAGS_value=
ac_cv_env_SDL_LIBS_set=
ac_cv_env_SDL_LIBS_value=
ac_cv_env_THEORA_CFLAGS_set=
ac_cv_env_THEORA_CFLAGS_value=
ac_cv_env_THEORA_LIBS_set=
ac_cv_env_THEORA_LIBS_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_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_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /home/yunfei/warzone2100-2.2.4/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/yunfei/warzone2100-2.2.4/missing --run tar'
AUTOCONF='${SHELL} /home/yunfei/warzone2100-2.2.4/missing --run autoconf'
AUTOHEADER='${SHELL} /home/yunfei/warzone2100-2.2.4/missing --run autoheader'
AUTOMAKE='${SHELL} /home/yunfei/warzone2100-2.2.4/missing --run automake-1.11'
AWK='mawk'
BFD_LIBS=''
CC='gcc'
CCDEPMODE=''
CC_FOR_BUILD=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CPPFLAGS_FOR_BUILD=''
CXX=''
CXXDEPMODE=''
CXXFLAGS=''
CXX_FOR_BUILD=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FONTCONFIG_CFLAGS=''
FONTCONFIG_LIBS=''
FREETYPE_CFLAGS=''
FREETYPE_LIBS=''
GETTEXT_MACRO_VERSION=''
GMSGFMT=''
GMSGFMT_015=''
GREP=''
IBERTY_LIBS=''
INSTALLER_COMPRESSION=''
INSTALLER_EXTDIR=''
INSTALLER_FALSE=''
INSTALLER_TRUE=''
INSTALLER_VERSION=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
INTL_MACOSX_LIBS=''
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/yunfei/warzone2100-2.2.4/missing --run makeinfo'
MAKENSIS=''
MINGW32_FALSE=''
MINGW32_TRUE=''
MKDIR_P='/bin/mkdir -p'
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
OBJEXT=''
OGGVORBIS_CFLAGS=''
OGGVORBIS_LIBS=''
OPENAL_CFLAGS=''
OPENAL_LIBS=''
OPENGLC_LIBS=''
OPENGL_LIBS=''
PACKAGE='warzone2100'
PACKAGE_BUGREPORT='http://wz2100.net/'
PACKAGE_NAME='Warzone 2100'
PACKAGE_STRING='Warzone 2100 2.2.4'
PACKAGE_TARNAME='warzone2100'
PACKAGE_VERSION='2.2.4'
PATH_SEPARATOR=':'
PERL=''
PERL_AVAILABLE_FALSE=''
PERL_AVAILABLE_TRUE=''
PERL_VERSION=''
PHYSFS_LIBS=''
PKGCONFIG_PREFIX=''
PKG_CONFIG=''
PNG_CFLAGS=''
PNG_LIBS=''
POPT_LIBS=''
POSUB=''
RANLIB=''
SDL_CFLAGS=''
SDL_LIBS=''
SDL_NET_LIBS=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
THEORA_CFLAGS=''
THEORA_LIBS=''
USE_NLS=''
VERSION='2.2.4'
WIN32_LIBS=''
WINDRES=''
WZ_CFLAGS=''
WZ_CPPFLAGS=''
XGETTEXT=''
XGETTEXT_015=''
XGETTEXT_EXTRA_OPTIONS=''
YACC=''
YFLAGS=''
ac_ct_CC='gcc'
ac_ct_CXX=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
applicationdir=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
icondir=''
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/yunfei/warzone2100-2.2.4/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define PACKAGE_NAME "Warzone 2100"
#define PACKAGE_TARNAME "warzone2100"
#define PACKAGE_VERSION "2.2.4"
#define PACKAGE_STRING "Warzone 2100 2.2.4"
#define PACKAGE_BUGREPORT "http://wz2100.net/"
#define PACKAGE "warzone2100"
#define VERSION "2.2.4"

configure: exit 77
头像
O_O_BOT
帖子: 2461
注册时间: 2009-05-20 19:32

Re: 编译出错,帮忙看看。

#2

帖子 O_O_BOT » 2009-11-01 22:29

irc <srdgame> say: 没有装gcc?
irc 聊天室
ubuntu-cn 的irc 频道为
irc.ubuntu.com 8001 #ubuntu-cn
UTF8编码 可用 irssi xchat pidgin weechat 登录

http://webchat.freenode.net/?channels=ubuntu-cn
[url]irc://irc.freenode.net/ubuntu-cn[/url]
头像
pisit
帖子: 413
注册时间: 2008-07-08 10:39

Re: 编译出错,帮忙看看。

#3

帖子 pisit » 2009-11-01 23:03

sudo apt-get install build-essential autoconf automake1.9 cvs subversion

http://wiki.ubuntu.org.cn/Qref/More#.E7 ... D.E7.BD.AE
封印
帖子: 95
注册时间: 2008-08-30 14:51

Re: 编译出错,帮忙看看。

#4

帖子 封印 » 2009-11-02 1:21

哎。一点都不懂。。。灰心
回复