免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: liuhename
打印 上一主题 下一主题

关于C compiler [复制链接]

论坛徽章:
0
11 [报告]
发表于 2006-10-25 12:02 |只看该作者
GCC 让我改为3.3.2了.

日志如下:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by sudo configure 1.6.8, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  $ ./configure

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

hostname = liuhe.test.com
uname -m = i86pc
uname -r = 5.10
uname -s = SunOS
uname -v = Generic_118855-14

/usr/bin/uname -p = i386
/bin/uname -X     = System = SunOS
Node = liuhe.test.com
Release = 5.10
KernelID = Generic_118855-14
Machine = i86pc
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1

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

PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/local/bin


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

configure:1552: Configuring Sudo version 1.6.8
configure:2105: checking whether to lecture users the first time they run sudo
configure:2123: result: yes
configure:2134: checking whether sudo should log via syslog or to a file by default
configure:2179: result: syslog
configure:2183: checking which syslog facility sudo should log with
configure:2211: result: local2
configure:2214: checking at which syslog priority to log commands
configure:2243: result: notice
configure:2246: checking at which syslog priority to log failures
configure:2275: result: alert
configure:2294: checking how long a line in the log file should be
configure:2322: result: 80
configure:2325: checking whether sudo should ignore '.' or '' in $PATH
configure:2350: result: no
configure:2354: checking whether to send mail when a user is not in sudoers
configure:2376: result: yes
configure:2383: checking whether to send mail when user listed but not for this host
configure:2408: result: no
configure:2412: checking whether to send mail when a user tries a disallowed command
configure:2437: result: no
configure:2441: checking who should get the mail that sudo sends
configure:2465: result: root
configure:2494: checking for bad password prompt
configure:2511: result: Password:
configure:2519: checking for bad password message
configure:2542: result: Sorry, try again.
configure:2545: checking whether to expect fully qualified hosts in sudoers
configure:2570: result: no
configure:2674: checking for umask programs should be run with
configure:2704: result: 0022
configure:2708: checking for default user to run commands as
configure:2732: result: root
configure:2761: checking for editor that visudo should use
configure:2789: result: vi
configure:2793: checking whether to obey EDITOR and VISUAL environment variables
configure:2818: result: no
configure:2822: checking number of tries a user gets to enter their password
configure:2847: result: 3
configure:2850: checking time in minutes after which sudo will ask for a password again
configure:2873: result: 5
configure:2876: checking time in minutes after the password prompt will time out
configure:2899: result: 5
configure:2924: checking whether to use per-tty ticket files
configure:2949: result: no
configure:2953: checking whether to include insults
configure:2980: result: no
configure:3132: checking whether to override the user's path
configure:3158: result: no
configure:3162: checking whether to get ip addresses from the network interfaces
configure:3185: result: yes
configure:3189: checking whether stow should be used
configure:3212: result: no
configure:3217: checking whether to do user authentication by default
configure:3241: result: yes
configure:3245: checking whether to disable running the mailer as root
configure:3269: result: no
configure:3295: checking whether to disable use of POSIX saved ids
configure:3319: result: no
configure:3323: checking whether to disable shadow password support
configure:3344: result: no
configure:3348: checking whether root should be allowed to use sudo
configure:3372: result: yes
configure:3376: checking whether to log the hostname in the log file
configure:3400: result: no
configure:3404: checking whether to invoke a shell if sudo is given no arguments
configure:3428: result: no
configure:3432: checking whether to set $HOME to target user in shell mode
configure:3456: result: no
configure:3460: checking whether to disable 'command not found' messages
configure:3484: result: no
configure:3490: checking for egrep
configure:3506: found /usr/bin/egrep
configure:3516: result: egrep
configure:3579: checking for gcc
configure:3605: result: gcc
configure:3849: checking for C compiler version
configure:3852: gcc --version </dev/null >&5
gcc (GCC) 3.3.2
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:3855: $? = 0
configure:3857: gcc -v </dev/null >&5
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2
configure:3860: $? = 0
configure:3862: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:3865: $? = 1
configure:3889: checking for C compiler default output
configure:3892: gcc    conftest.c  >&5
gcc: installation problem, cannot exec `as': No such file or directory
configure:3895: $? = 1
configure: failed program was:
| #line 3868 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "sudo"
| #define PACKAGE_TARNAME "sudo"
| #define PACKAGE_VERSION "1.6.8"
| #define PACKAGE_STRING "sudo 1.6.8"
| #define PACKAGE_BUGREPORT ""
| #define LOGGING SLOG_SYSLOG
| #define LOGFAC "local2"
| #define PRI_SUCCESS "notice"
| #define PRI_FAILURE "alert"
| #define MAXLOGFILELEN 80
| #define SEND_MAIL_WHEN_NO_USER 1
| #define MAILTO "root"
| #define MAILSUBJECT "*** SECURITY information for %h ***"
| #define PASSPROMPT "Password:"
| #define INCORRECT_PASSWORD "Sorry, try again."
| #define SUDO_UMASK 0022
| #define RUNAS_DEFAULT "root"
| #define EDITOR _PATH_VI
| #define TRIES_FOR_PASSWORD 3
| #define TIMEOUT 5
| #define PASSWORD_TIMEOUT 5
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3934: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
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_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_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_prog_EGREPPROG=egrep
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=no

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

AFS_LIBS=''
ALLOCA=''
AR=''
AUTH_OBJS=''
CC='gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXFLAGS=''
DEFS=''
DEV='#'
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EGREPPROG='egrep'
EXEEXT=''
F77=''
FFLAGS=''
INSTALL_NOEXEC=''
KRB5CONFIG=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MANTYPE='man'
MAN_POSTINSTALL=''
NET_LIBS=''
NOEXECDIR=''
NROFFPROG=''
OBJEXT=''
OSDEFS=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='sudo'
PACKAGE_STRING='sudo 1.6.8'
PACKAGE_TARNAME='sudo'
PACKAGE_VERSION='1.6.8'
PATH_SEPARATOR=':'
PROGS='sudo visudo'
RANLIB=''
SHELL='/bin/bash'
STRIP=''
SUDOERS_GID='0'
SUDOERS_MODE='0440'
SUDOERS_UID='0'
SUDO_LDFLAGS=''
SUDO_LIBS=''
SUDO_OBJS=''
TRPROG=''
UNAMEPROG=''
YACC=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
badpass_message='Sorry, try again.'
badpri='alert'
bindir='$(exec_prefix)/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
env_editor='off'
exec_prefix='NONE'
fqdn='off'
goodpri='notice'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
ignore_dot='off'
includedir='${prefix}/include'
infodir='${prefix}/info'
insults='off'
lecture='once'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
logfac='local2'
loglen='80'
long_otp_prompt='off'
mail_no_host='off'
mail_no_perms='off'
mail_no_user='on'
mailsub='*** SECURITY information for %h ***'
mailto='root'
mandir='$(prefix)/man'
mansectform=''
mansectsu=''
mansrcdir='.'
noexec_file=''
oldincludedir='/usr/include'
passprompt='Password:'
passwd_tries='3'
password_timeout='5'
prefix='NONE'
program_transform_name='s,x,x,'
root_sudo='on'
runas_default='root'
sbindir='$(exec_prefix)/sbin'
sharedstatedir='${prefix}/com'
sudo_umask='0022'
sysconfdir='/etc'
target=''
target_alias=''
target_cpu=''
target_os=''
target_vendor=''
timedir=''
timeout='5'
tty_tickets='off'

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

#define EDITOR _PATH_VI
#define INCORRECT_PASSWORD "Sorry, try again."
#define LOGFAC "local2"
#define LOGGING SLOG_SYSLOG
#define MAILSUBJECT "*** SECURITY information for %h ***"
#define MAILTO "root"
#define MAXLOGFILELEN 80
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "sudo"
#define PACKAGE_STRING "sudo 1.6.8"
#define PACKAGE_TARNAME "sudo"
#define PACKAGE_VERSION "1.6.8"
#define PASSPROMPT "Password:"
#define PASSWORD_TIMEOUT 5
#define PRI_FAILURE "alert"
#define PRI_SUCCESS "notice"
#define RUNAS_DEFAULT "root"
#define SEND_MAIL_WHEN_NO_USER 1
#define SUDO_UMASK 0022
#define TIMEOUT 5
#define TRIES_FOR_PASSWORD 3

configure: exit 77
-bash-3.00#


麻烦了.

论坛徽章:
0
12 [报告]
发表于 2006-10-25 16:02 |只看该作者
gcc: installation problem, cannot exec `as': No such file or directory
会不会是安装出了问题.

论坛徽章:
0
13 [报告]
发表于 2006-10-26 10:15 |只看该作者
原错误信息为:
cannot exec `as': 没有文件和路经.在网上找到相关软件包为:
binutils-2.11.2-sol8-sparc-local.gz

我的是10但没有找到,用了8这个包


编译时发现:
cannot exec `/usr/ccs/bin/as': Invalid argument
因为as的默认安装路径为/usr/local/bin/as
我应该怎么操作呢.

论坛徽章:
0
14 [报告]
发表于 2006-10-26 13:06 |只看该作者
全部卸载重新装,先装libconv 再装gcc

论坛徽章:
0
15 [报告]
发表于 2006-10-26 13:44 |只看该作者
问题已经解决!
SUNWsprot
SUNWarc

需要安装以上包!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP