|
|

楼主 |
发表于 2006-10-26 11:53:47
|
显示全部楼层
谢谢大家,下载了tar-1.16.cpio.gz,
#gzip -d -c tar-1.16.cpio.gz | cpio -i解开
# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... none
checking for style of include used by make... GNU
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.
出现错误,config.log内容如下,his file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU tar configure 1.16, which was
generated by GNU Autoconf 2.60. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = penny
uname -m = i686
uname -r = 2.6.16-2-686
uname -s = Linux
uname -v = #1 Fri Aug 18 19:01:49 UTC 2006
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/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/bin/X11
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1942: checking for a BSD-compatible install
configure:1998: result: /usr/bin/install -c
configure:2009: checking whether build environment is sane
configure:2052: result: yes
configure:2117: checking for gawk
configure:2147: result: no
configure:2117: checking for mawk
configure:2133: found /usr/bin/mawk
configure:2144: result: mawk
configure:2155: checking whether make sets $(MAKE)
configure:2176: result: yes
configure:2355: checking how to create a ustar tar archive
configure:2368: tar --version
./configure: line 2369: tar: command not found
configure:2371: $? = 127
configure:2368: gnutar --version
./configure: line 2369: gnutar: command not found
configure:2371: $? = 127
configure:2368: gtar --version
./configure: line 2369: gtar: command not found
configure:2371: $? = 127
configure:2411: tardir=conftest.dir && eval gtar --format=ustar -chf - "$tardir" >conftest.tar
./configure: line 2412: gtar: command not found
configure:2414: $? = 127
configure:2411: tardir=conftest.dir && eval tar chf - "$tardir" >conftest.tar
./configure: line 2412: tar: command not found
configure:2414: $? = 127
configure:2411: tardir=conftest.dir && eval pax -L -x ustar -w "$tardir" >conftest.tar
./configure: line 2412: pax: command not found
configure:2414: $? = 127
configure:2411: tardir=conftest.dir && eval find "$tardir" -print | cpio -o -H ustar -L >conftest.tar
5 blocks
configure:2414: $? = 0
configure:2418: cpio -i -H ustar -d <conftest.tar
4 blocks
configure:2421: $? = 0
configure:2411: tardir=conftest.dir && eval false >conftest.tar
configure:2414: $? = 1
configure:2434: result: none
configure:2460: checking for style of include used by make
configure:2488: result: GNU
configure:2561: checking for gcc
configure:2577: found /usr/bin/gcc
configure:2588: result: gcc
configure:2826: checking for C compiler version
configure:2833: gcc --version >&5
gcc (GCC) 4.1.2 20061007 (prerelease) (Debian 4.1.1-16)
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:2836: $? = 0
configure:2843: gcc -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061007 (prerelease) (Debian 4.1.1-16)
configure:2846: $? = 0
configure:2853: gcc -V >&5
gcc: '-V' option must have argument
configure:2856: $? = 1
configure:2879: checking for C compiler default output file name
configure:2906: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2909: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "GNU tar"
| #define PACKAGE_TARNAME "tar"
| #define PACKAGE_VERSION "1.16"
| #define PACKAGE_STRING "GNU tar 1.16"
| #define PACKAGE_BUGREPORT "bug-tar@gnu.org"
| #define PACKAGE "tar"
| #define VERSION "1.16"
| #define _GNU_SOURCE 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2948: error: C compiler cannot create executables
See `config.log' for more details.
是gcc版本不配套吗? |
|