configure error

歡迎提問 debian desktop 相關問題,何謂 desktop ? 舉凡您日常生活會用到的部份,如上網 ( www 、 bbs ..) 、程式設計、繪圖...等等。 通常以 X Window 環境底下問題為主。

configure error

文章Q » 週一 2月 20, 2006 9:23 am

configure: error: no acceptable C compiler found in $PATH

下一步該怎麼做呢?
thx
Q
 

文章wsun013 » 週一 2月 20, 2006 9:57 am

就是您還沒有 gcc 等工具嘍
apt-get install gcc
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GE d->++ s: a-- C+++>++++ UL>++++ P>++++ L++>++++ E---- W+ N@ o K- w++(+)
O- M- V? PS+++(+) PE++(+) Y-- PGP- t>--- 5? X+++ R- tv-(--) b+ DI? D+ G e++>++++
h+(!) r++(%) y*>++++
-------END GEEK CODE BLOCK-------
頭像
wsun013
快樂的大學生
快樂的大學生
 
文章: 784
註冊時間: 週二 9月 14, 2004 12:12 pm
來自: 紐西蘭

文章Q » 週一 2月 20, 2006 11:12 am

裝了結果如下
debian:/mnt/a/MyShare/wine-0.9.8/wine-0.9.8# ./configure
checking build system type... i586-pc-linux-gnulibc1
checking host system type... i586-pc-linux-gnulibc1
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
Q
 

文章wsun013 » 週一 2月 20, 2006 12:04 pm

See `config.log' for more details.
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GE d->++ s: a-- C+++>++++ UL>++++ P>++++ L++>++++ E---- W+ N@ o K- w++(+)
O- M- V? PS+++(+) PE++(+) Y-- PGP- t>--- 5? X+++ R- tv-(--) b+ DI? D+ G e++>++++
h+(!) r++(%) y*>++++
-------END GEEK CODE BLOCK-------
頭像
wsun013
快樂的大學生
快樂的大學生
 
文章: 784
註冊時間: 週二 9月 14, 2004 12:12 pm
來自: 紐西蘭

文章訪客 » 週一 2月 20, 2006 12:33 pm

Q 寫:error: C compiler cannot create executables
See `config.log' for more details.

沒有裝 binutils

另外,請多爬爬文,或 google 一下...
訪客
 

文章Q » 週一 2月 20, 2006 1:07 pm

apt-get install binutils
它說已經是最新版了

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 Wine configure 0.9.8, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure

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

hostname = debian
uname -m = i586
uname -r = 2.6.15-1-486
uname -s = Linux
uname -v = #1 Fri Feb 10 15:40:35 UTC 2006

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

/bin/arch              = i586
/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: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/bin/X11


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

configure:1424: checking build system type
configure:1442: result: i586-pc-linux-gnulibc1
configure:1450: checking host system type
configure:1464: result: i586-pc-linux-gnulibc1
configure:1504: checking whether make sets $(MAKE)
configure:1524: result: yes
configure:1579: checking for gcc
configure:1595: found /usr/bin/gcc
configure:1605: result: gcc
configure:1849: checking for C compiler version
configure:1852: gcc --version </dev/null >&5
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
Copyright (C) 2003 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:1855: $? = 0
configure:1857: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)
configure:1860: $? = 0
configure:1862: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1865: $? = 1
configure:1888: checking for C compiler default output file name
configure:1891: gcc    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:1894: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "0.9.8"
| #define PACKAGE_STRING "Wine 0.9.8"
| #define PACKAGE_BUGREPORT "wine-devel@winehq.org"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:1933: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i586-pc-linux-gnulibc1
ac_cv_build_alias=i586-pc-linux-gnulibc1
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_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_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=i586-pc-linux-gnulibc1
ac_cv_host_alias=i586-pc-linux-gnulibc1
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ALSALIBS=''
AR=''
ARTSCCONFIG=''
ARTSINCL=''
ARTSLIBS=''
AS=''
AUDIOIOLIBS=''
BISON=''
BUILTINFLAG=''
CC='gcc'
CFLAGS=''
COREFOUNDATIONLIB=''
CPP=''
CPPBIN=''
CPPFLAGS=''
CROSSCC=''
CROSSTEST=''
CROSSWINDRES=''
CRTLIBS=''
CURSESLIBS=''
CXX=''
CXXFLAGS=''
DEFS=''
DLLDEFS=''
DLLEXT=''
DLLFLAGS=''
DLLIBS=''
DLLTOOL=''
DLLWRAP=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ESDCONFIG=''
ESDINCL=''
ESDLIBS=''
EXEEXT=''
EXTRACFLAGS=''
FONTFORGE=''
FONTSSUBDIRS=''
FREETYPEINCL=''
FREETYPELIBS=''
GLU32FILES=''
GLUT32FILES=''
GLUT_LIBS=''
ICULIBS=''
IMPLIBEXT=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
IOKITLIB=''
LCMSLIBS=''
LD=''
LDAPLIBS=''
LDCONFIG=''
LDD=''
LDDLLFLAGS=''
LDEXECFLAGS=''
LDFLAGS=''
LDPATH=''
LDSHARED=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBEXT=''
LIBOBJS=''
LIBPTHREAD=''
LIBS=''
LINT=''
LINTFLAGS=''
LN=''
LN_S=''
LTLIBOBJS=''
MAIN_BINARY=''
NASLIBS=''
OBJEXT=''
OPENGLFILES=''
OPENGL_LIBS=''
PACKAGE_BUGREPORT='wine-devel@winehq.org'
PACKAGE_NAME='Wine'
PACKAGE_STRING='Wine 0.9.8'
PACKAGE_TARNAME='wine'
PACKAGE_VERSION='0.9.8'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PRELINK=''
RANLIB=''
SANEINCL=''
SANELIBS=''
SET_MAKE=''
SHELL='/bin/sh'
SOCKETLIBS=''
STRIP=''
TOOLSDIR=''
WIN16_FILES='$(WIN16_FILES)'
WIN16_INSTALL='$(WIN16_INSTALL)'
WINDRES=''
WINE_BINARIES=''
XFILES=''
XLEX=''
XLIB=''
XML2INCL=''
XML2LIBS=''
XSLTINCL=''
XSLTLIBS=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC='gcc'
ac_ct_CPPBIN=''
ac_ct_CXX=''
ac_ct_DLLTOOL=''
ac_ct_DLLWRAP=''
ac_ct_LD=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
ac_ct_WINDRES=''
bindir='${exec_prefix}/bin'
build='i586-pc-linux-gnulibc1'
build_alias=''
build_cpu='i586'
build_os='linux-gnulibc1'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
ft_devel2=''
ft_devel=''
host='i586-pc-linux-gnulibc1'
host_alias=''
host_cpu='i586'
host_os='linux-gnulibc1'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sane_devel=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ------------- ##
## Output files. ##
## ------------- ##

MAKE_DLL_RULES=''
MAKE_IMPLIB_RULES=''
MAKE_LIB_RULES=''
MAKE_PROG_RULES=''
MAKE_RULES=''
MAKE_TEST_RULES=''

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

#define PACKAGE_BUGREPORT "wine-devel@winehq.org"
#define PACKAGE_NAME "Wine"
#define PACKAGE_STRING "Wine 0.9.8"
#define PACKAGE_TARNAME "wine"
#define PACKAGE_VERSION "0.9.8"

configure: exit 77

Q
 

文章wsun013 » 週一 2月 20, 2006 1:53 pm

1. 您少了 crt1.o
代碼: 選擇全部
configure:1891: gcc    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status


2. 找到有 crt1.o 的package
代碼: 選擇全部
usr/lib/crt1.o                      libdevel/libc6-dev


3. 裝該 package
代碼: 選擇全部
apt-get install libc6-dev
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GE d->++ s: a-- C+++>++++ UL>++++ P>++++ L++>++++ E---- W+ N@ o K- w++(+)
O- M- V? PS+++(+) PE++(+) Y-- PGP- t>--- 5? X+++ R- tv-(--) b+ DI? D+ G e++>++++
h+(!) r++(%) y*>++++
-------END GEEK CODE BLOCK-------
頭像
wsun013
快樂的大學生
快樂的大學生
 
文章: 784
註冊時間: 週二 9月 14, 2004 12:12 pm
來自: 紐西蘭

文章Q » 週二 2月 21, 2006 5:43 am

./confgiure
然後make 出現
代碼: 選擇全部
debian:/mnt/a/MyShare/wine-0.9.8/wine-0.9.8# make
make[1]: Entering directory `/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/libs'
make[2]: Entering directory `/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/libs/port'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/libs/port'
make[2]: Entering directory `/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/libs/unicode'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/libs/unicode'
make[2]: Entering directory `/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/libs/wine'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/libs/wine'
make[2]: Entering directory `/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/libs/wpp'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/libs/wpp'
make[1]: Leaving directory `/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/libs'
make[1]: Entering directory `/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/tools'
gcc -g -O2 -o bin2res bin2res.o -L../libs/port -lwine_port
/usr/lib/libc_nonshared.a(elf-init.oS)(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): In function `__i686.get_pc_thunk.bx':
: multiple definition of `__i686.get_pc_thunk.bx'
../libs/port/libwine_port.a(mkstemps.o)(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0):/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/libs/port/mkstemps.c:74: first defined here
collect2: ld returned 1 exit status
make[1]: *** [bin2res] Error 1
make[1]: Leaving directory `/mnt/a/MyShare/wine-0.9.8/wine-0.9.8/tools'
make: *** [tools] Error 2
debian:/mnt/a/MyShare/wine-0.9.8/wine-0.9.8#

Q
 

文章wsun013 » 週二 2月 21, 2006 6:35 am

也許您要練習一下googling 了
代碼: 選擇全部
/usr/lib/libc_nonshared.a(elf-init.oS)(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): In function `__i686.get_pc_thunk.bx':
: multiple definition of `__i686.get_pc_thunk.bx'


keyword 可以是
1. "multiple definition of `__i686.get_pc_thunk.bx' "
2. libc_nonshared.a
3. libwine_port.a

祝您旅途愉快
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GE d->++ s: a-- C+++>++++ UL>++++ P>++++ L++>++++ E---- W+ N@ o K- w++(+)
O- M- V? PS+++(+) PE++(+) Y-- PGP- t>--- 5? X+++ R- tv-(--) b+ DI? D+ G e++>++++
h+(!) r++(%) y*>++++
-------END GEEK CODE BLOCK-------
頭像
wsun013
快樂的大學生
快樂的大學生
 
文章: 784
註冊時間: 週二 9月 14, 2004 12:12 pm
來自: 紐西蘭


回到 debian desktop

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客