安装proftpd时报错
# ./configure --prefix=/export/home/proftp
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking for gcc... /usr/local/bin/gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
查看config.log内容如下:
# more 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 configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
configure:1641: checking build system type
configure:1659: result: i386-pc-solaris2.10
configure:1667: checking host system type
configure:1681: result: i386-pc-solaris2.10
configure:1689: checking target system type
configure:1703: result: i386-pc-solaris2.10
configure:1807: checking for gcc
configure:1833: result: /usr/local/bin/gcc
configure:2077: checking for C compiler version
configure:2080: /usr/local/bin/gcc --version </dev/null >&5
gcc (GCC) 3.4.6
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:2083: $? = 0
configure:2085: /usr/local/bin/gcc -v </dev/null >&5
Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/l
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/l
d --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
configure:2088: $? = 0
configure:2090: /usr/local/bin/gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2093: $? = 1
configure:2116: checking for C compiler default output file name
configure:2119: /usr/local/bin/gcc conftest.c >&5
gcc: installation problem, cannot exec `as': No such file or directory
configure:2122: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PR_BUILD_OPTS "--prefix=/export/home/proftp"
| #define PR_PLATFORM "SOLARIS2 (SOLARIS2_10)"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2160: error: C compiler cannot create executables
See `config.log' for more details.