当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 编译出错,帮忙看看。
帖子发表于 : 2009-11-01 22:26 

注册: 2008-08-30 14:51
帖子: 95
送出感谢: 0 次
接收感谢: 0 次
代码:
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


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 编译出错,帮忙看看。
帖子发表于 : 2009-11-01 22:29 
头像

注册: 2009-05-20 19:32
帖子: 2462
送出感谢: 0 次
接收感谢: 2
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
irc://irc.freenode.net/ubuntu-cn


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 编译出错,帮忙看看。
帖子发表于 : 2009-11-01 23:03 
头像

注册: 2008-07-08 10:39
帖子: 413
送出感谢: 1
接收感谢: 3
sudo apt-get install build-essential autoconf automake1.9 cvs subversion

http://wiki.ubuntu.org.cn/Qref/More#.E7 ... D.E7.BD.AE


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 编译出错,帮忙看看。
帖子发表于 : 2009-11-02 1:21 

注册: 2008-08-30 14:51
帖子: 95
送出感谢: 0 次
接收感谢: 0 次
哎。一点都不懂。。。灰心


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 编译出错,帮忙看看。
帖子发表于 : 2009-11-02 1:41 
头像

注册: 2008-03-25 15:49
帖子: 25876
地址: 谁知道?
送出感谢: 8
接收感谢: 10
没有deb包么? 必须编译?
照3楼的试试 :em11


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译