免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2023 | 回复: 10
打印 上一主题 下一主题

无法安装bind [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-04 09:43 |只看该作者 |倒序浏览
# ./configure
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking whether make sets $(MAKE)... no
checking for ranlib... ranlib
checking for a BSD-compatible install... ./install-sh -c
checking for ar... /usr/ccs/bin/ar
checking for etags... no
checking for emacs-etags... no
checking for perl5... no
checking for perl... /usr/bin/perl
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.

C编译器的PATH如何设置?
# env
HOME=/
HZ=100
LANG=C
LOGNAME=qing
MAIL=/var/mail/qing
PATH=/usr/sbin:/usr/bin:/usr/local/bin/:/usr/ccs/bin:/usr/ccs/bin
PS1=#
SHELL=/bin/sh
TERM=vt100
TZ=PRC
#


# find / -name gcc -print
/usr/local/bin/gcc
/usr/local/doc/gcc
/usr/local/lib/gcc
/usr/local/libexec/gcc

论坛徽章:
0
2 [报告]
发表于 2007-04-04 10:41 |只看该作者
CC=gcc;export CC

论坛徽章:
0
3 [报告]
发表于 2007-04-05 16:23 |只看该作者
已经CC=gcc ;export CC了,还是报一样的错误


# 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

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

hostname = gxcc
uname -m = sun4u
uname -r = 5.10
uname -s = SunOS
uname -v = Generic_118833-33

/usr/bin/uname -p = sparc
/bin/uname -X     = System = SunOS
Node = gxcc
Release = 5.10
KernelID = Generic_118833-33
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 2

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

PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /etc
PATH: /usr/local/bin
PATH: /usr/ccs/bin


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

configure:1578: checking build system type
configure:1596: result: sparc-sun-solaris2.10
configure:1604: checking host system type
configure:1618: result: sparc-sun-solaris2.10
configure:1627: checking whether make sets $(MAKE)
configure:1647: result: yes
configure:1697: checking for ranlib
configure:1713: found /usr/ccs/bin/ranlib
configure:1724: result: ranlib
configure:1749: checking for a BSD-compatible install
configure:1804: result: ./install-sh -c
configure:1823: checking for ar
configure:1841: found /usr/ccs/bin/ar
configure:1853: result: /usr/ccs/bin/ar
configure:1891: checking for etags
configure:1924: result: no
configure:1891: checking for emacs-etags
configure:1924: result: no
configure:1957: checking for perl5
configure:1990: result: no
configure:1957: checking for perl
configure:1975: found /bin/perl
configure:1987: result: /bin/perl
configure:2152: checking for gcc
configure:2178: result: gcc
configure:2422: checking for C compiler version
configure:2425: 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:2428: $? = 0
configure:2430: gcc -v </dev/null >&5
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
configure:2433: $? = 0
configure:2435: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2438: $? = 1
configure:2461: checking for C compiler default output file name
configure:2464: gcc    conftest.c  >&5
gcc: installation problem, cannot exec `as': No such file or directory
configure:2467: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""

论坛徽章:
0
4 [报告]
发表于 2007-04-05 16:30 |只看该作者
尝试在configure中指定--with-as=/usr/local/bin/gcc

论坛徽章:
0
5 [报告]
发表于 2007-04-05 16:32 |只看该作者
gcc: installation problem, cannot exec `as': No such file or directory
这个已经告诉你了.

论坛徽章:
0
6 [报告]
发表于 2007-04-05 16:43 |只看该作者
# ./configure --with-as=/usr/local/bin/gcc
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... ./install-sh -c
checking for ar... /usr/ccs/bin/ar
checking for etags... no
checking for emacs-etags... no
checking for perl5... no
checking for perl... /bin/perl
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.
#



gcc: installation problem, cannot exec `as': No such file or directory
这个已经告诉你了.  

gcc 没装好?重新装?

论坛徽章:
0
7 [报告]
发表于 2007-04-05 16:50 |只看该作者
# find / -name as -print
/proc/0/as
/proc/1/as
/proc/2/as
/proc/3/as
/proc/134/as
/proc/7/as
/proc/9/as
/proc/394/as
/proc/109/as
/proc/453/as
/proc/240/as
/proc/273/as
/proc/6978/as
/proc/125/as
/proc/217/as
/proc/477/as
/proc/429/as
/proc/139/as
/proc/213/as
/proc/221/as
/proc/225/as
/proc/226/as
/proc/241/as
/proc/233/as
/proc/254/as
/proc/517/as
/proc/295/as
/proc/15081/as
/proc/492/as
/proc/491/as
/proc/450/as
/proc/528/as
/proc/454/as
/proc/6975/as
/proc/6983/as

论坛徽章:
0
8 [报告]
发表于 2007-04-05 17:16 |只看该作者
Have a look on isc.org:

gcc-3.2.1 and gcc-3.1.1 is known to cause problems with solaris-x86.
gcc prior to gcc-3.2.3 ultrasparc generates incorrect code at -02.

论坛徽章:
0
9 [报告]
发表于 2007-04-05 17:21 |只看该作者
also 'as' should be 'gas'

try to remove the path '/usr/ccs/bin' in environment parameters.

论坛徽章:
0
10 [报告]
发表于 2007-04-12 10:14 |只看该作者
不是x86的,是sparc的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP