- 论坛徽章:
- 0
|
20可用积分
公司一台 t2000上,定制安装了系统solaris 10 (非默认安装),有些东西没装全。
现在要安装一个sudo,提示无法编译:
configure: error: C compiler cannot create executables
我已经装了gcc相关的三个包:
pkginfo -l |grep SUNWgcc
PKGINST: SUNWgcc
PKGINST: SUNWgccS
PKGINST: SUNWgccruntime
然后上网查询,说是libiconv没有装,我从sunfreeware上下了一个,装上后还是报错,请帮我看看是什么错误?谢谢
- $ ./configure
- ## --------- ##
- ## Platform. ##
- ## --------- ##
- hostname = xxxxxx
- uname -m = sun4v
- uname -r = 5.10
- uname -s = SunOS
- uname -v = Generic_118833-36
- /usr/bin/uname -p = sparc
- /bin/uname -X = System = SunOS
- Node = peacock
- Release = 5.10
- KernelID = Generic_118833-36
- Machine = sun4v
- BusType = <unknown>
- Serial = <unknown>
- Users = <unknown>
- OEM# = 0
- Origin# = 1
- NumCPU = 16
- /bin/arch = sun4
- /usr/bin/arch -k = sun4v
- /usr/convex/getsysinfo = unknown
- /usr/bin/hostinfo = unknown
- /bin/machine = unknown
- /usr/bin/oslevel = unknown
- /bin/universe = unknown
- PATH: /usr/bin
- PATH: /usr/sbin
- PATH: /etc
- PATH: /usr/sfw/bin.
- ## ----------- ##
- ## Core tests. ##
- ## ----------- ##
- configure:2022: Configuring Sudo version 1.6.9
- configure:2581: checking whether to lecture users the first time they run sudo
- configure:2599: result: yes
- configure:2610: checking whether sudo should log via syslog or to a file by default
- configure:2654: result: syslog
- configure:2659: checking which syslog facility sudo should log with
- configure:2687: result: local2
- configure:2690: checking at which syslog priority to log commands
- configure:2719: result: notice
- configure:2722: checking at which syslog priority to log failures
- configure:2751: result: alert
- configure:2770: checking how long a line in the log file should be
- configure:2798: result: 80
- configure:2801: checking whether sudo should ignore '.' or '' in $PATH
- configure:2826: result: no
- configure:2830: checking whether to send mail when a user is not in sudoers
- configure:2852: result: yes
- configure:2859: checking whether to send mail when user listed but not for this host
- configure:2884: result: no
- configure:2888: checking whether to send mail when a user tries a disallowed command
- configure:2913: result: no
- configure:2917: checking who should get the mail that sudo sends
- configure:2941: result: root
- configure:2970: checking for bad password prompt
- configure:2987: result: Password:
- configure:2995: checking for bad password message
- configure:3018: result: Sorry, try again.
- configure:3021: checking whether to expect fully qualified hosts in sudoers
- configure:3046: result: no
- configure:3150: checking for umask programs should be run with
- configure:3180: result: 0022
- configure:3184: checking for default user to run commands as
- configure:3208: result: root
- configure:3237: checking for editor that visudo should use
- configure:3264: result: vi
- configure:3269: checking whether to obey EDITOR and VISUAL environment variables
- configure:3294: result: no
- configure:3298: checking number of tries a user gets to enter their password
- configure:3323: result: 3
- configure:3326: checking time in minutes after which sudo will ask for a password again
- configure:3349: result: 5
- configure:3352: checking time in minutes after the password prompt will time out
- configure:3375: result: 5
- configure:3378: checking whether to use per-tty ticket files
- configure:3403: result: no
- configure:3407: checking whether to include insults
- configure:3434: result: no
- configure:3596: checking whether to override the user's path
- configure:3621: result: no
- configure:3626: checking whether to get ip addresses from the network interfaces
- configure:3648: result: yes
- configure:3653: checking whether stow should be used
- configure:3675: result: no
- configure:3681: checking whether to do user authentication by default
- configure:3704: result: yes
- configure:3709: checking whether to disable running the mailer as root
- configure:3732: result: no
- configure:3759: checking whether to disable shadow password support
- configure:3779: result: no
- configure:3784: checking whether root should be allowed to use sudo
- configure:3807: result: yes
- configure:3812: checking whether to log the hostname in the log file
- configure:3835: result: no
- configure:3840: checking whether to invoke a shell if sudo is given no arguments
- configure:3863: result: no
- configure:3868: checking whether to set $HOME to target user in shell mode
- configure:3891: result: no
- configure:3896: checking whether to disable 'command not found' messages
- configure:3920: result: no
- configure:3927: checking for egrep
- configure:3943: found /usr/bin/egrep
- configure:3954: result: egrep
- configure:4020: checking for gcc
- configure:4047: result: gcc
- configure:4285: checking for C compiler version
- configure:4292: gcc --version >&5
- gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
- Copyright (C) 2004 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:4295: $? = 0
- configure:4302: gcc -v >&5
- Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
- Configured with: /gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --pref
- ix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-g
- nu-ld --enable-languages=c,c++ --enable-shared
- Thread model: posix
- gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
- configure:4305: $? = 0
- configure:4312: gcc -V >&5
- gcc: `-V' option must have argument
- configure:4315: $? = 1
- configure:4338: checking for C compiler default output file name
- configure:4365: gcc conftest.c >&5
- /usr/ccs/bin/as: error: unknown option '-'
- /usr/ccs/bin/as: error: unknown option 't'
- /usr/ccs/bin/as: error: unknown option 'aditional-format'
- usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-q] [-s]
- [-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
- [-P [[-Yc,path] [-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
- [-m [-Ym,path]] [-n] [-ul] [-xF] [-xarch={v7,v8,v8a,v8plus,v8plusa,v8plusb,v9,v9
- a,v9b}] [-xcode={pic13,pic32}] file.s...
- configure:4368: $? = 1
- configure:4406: result:
- configure: failed program was:
- | /* confdefs.h. */
- | #define PACKAGE_NAME "sudo"
- | #define PACKAGE_TARNAME "sudo"
- | #define PACKAGE_VERSION "1.6.9"
- | #define PACKAGE_STRING "sudo 1.6.9"
- | #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:4413: 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_LDFLAGS_set=
- ac_cv_env_LDFLAGS_value=
- ac_cv_env_LIBS_set=
- ac_cv_env_LIBS_value=
- ac_cv_env_YACC_set=
- ac_cv_env_YACC_value=
- ac_cv_env_YFLAGS_set=
- ac_cv_env_YFLAGS_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=''
- DEFS=''
- DEV='#'
- DONT_LEAK_PATH_INFO=''
- ECHO='echo'
- ECHO_C=''
- ECHO_N='-n'
- ECHO_T=''
- EGREP=''
- EGREPPROG='egrep'
- EXEEXT=''
- GETGROUPS_LIB=''
- GREP=''
- 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.9'
- PACKAGE_TARNAME='sudo'
- PACKAGE_VERSION='1.6.9'
- PATH_SEPARATOR=':'
- PROGS='sudo visudo'
- RANLIB=''
- SED=''
- SHELL='/bin/bash'
- STRIP=''
- SUDOERS_GID='0'
- SUDOERS_MODE='0440'
- SUDOERS_UID='0'
- SUDO_LDFLAGS=''
- SUDO_LIBS=''
- SUDO_OBJS=''
- TRPROG=''
- UNAMEPROG=''
- YACC=''
- YFLAGS=''
- ac_ct_CC='gcc'
- badpass_message='Sorry, try again.'
- badpri='alert'
- bindir='$(exec_prefix)/bin'
- build=''
- build_alias=''
- build_cpu=''
- build_os=''
- build_vendor=''
- datadir='${datarootdir}'
- datarootdir='${prefix}/share'
- docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
- dvidir='${docdir}'
- env_editor='off'
- exec_prefix='NONE'
- fqdn='off'
- goodpri='notice'
- host=''
- host_alias=''
- host_cpu=''
- host_os=''
- host_vendor=''
- htmldir='${docdir}'
- ignore_dot='off'
- includedir='${prefix}/include'
- infodir='${datarootdir}/info'
- insults='off'
- lecture='once'
- libdir='${exec_prefix}/lib'
- libexecdir='${exec_prefix}/libexec'
- localedir='${datarootdir}/locale'
- 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='${datarootdir}/man'
- mansectform=''
- mansectsu=''
- mansrcdir='.'
- noexec_file=''
- oldincludedir='/usr/include'
- passprompt='Password:'
- passwd_tries='3'
- password_timeout='5'
- path_info='on'
- pdfdir='${docdir}'
- prefix='NONE'
- program_transform_name='s,x,x,'
- psdir='${docdir}'
- 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 PACKAGE_NAME "sudo"
- #define PACKAGE_TARNAME "sudo"
- #define PACKAGE_VERSION "1.6.9"
- #define PACKAGE_STRING "sudo 1.6.9"
- #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
-
复制代码 |
最佳答案
查看完整内容
You left a space between the . and sudo-1.6.9p12-sol10-sparc-local.Please try this:# pkgadd -d ./sudo-1.6.9p12-sol10-sparc-local
|