why install gcc display error in the solaris system!
who help you! very thanks!
display: bash-3.00# ./configure loading cache ./config.cache checking host system type... i386-pc-solaris2.10 checking target system type... i386-pc-solaris2.10 checking build system type... i386-pc-solaris2.10 checking for a BSD compatible install... ./install-sh -c ./configure: cc: not found *** The command 'cc -o conftest -g conftest.c' failed. *** You must set the environment variable CC to a working compiler. doing: bash-3.00# pwd /export/home/good/gcc-3.4.0 bash-3.00# ln -s gcc cc result: display the same error! information: bash-3.00# uname -a SunOS solaris10 5.10 Generic_142910-17 i86pc i386 i86pc bash-3.00# env HZ= TERM=vt100 SHELL=/sbin/sh OLDPWD=/export/home/good PATH=/usr/sbin:/usr/bin MAIL=/var/mail/root PWD=/export/home/good/gcc-3.4.0 LANG=en_US.UTF-8 TZ=US/Eastern SHLVL=1 HOME=/ LOGNAME=root _=/usr/bin/env bash-3.00# set BASH=/usr/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="3" [1]="00" [2]="16" [3]="1" [4]="release" [5]="i386-pc-solaris2.10") BASH_VERSION='3.00.16(1)-release' COLUMNS=157 DIRSTACK=() EUID=0 GROUPS=() HISTFILE=//.bash_history HISTFILESIZE=500 HISTSIZE=500 HOME=/ HOSTNAME=solaris10 HOSTTYPE=i386 HZ= IFS=$' \t\n' LANG=en_US.UTF-8 LINES=36 LOGNAME=root MACHTYPE=i386-pc-solaris2.10 MAIL=/var/mail/root MAILCHECK=60 OLDPWD=/export/home/good OPTERR=1 OPTIND=1 OSTYPE=solaris2.10 PATH=/usr/sbin:/usr/bin PIPESTATUS=([0]="0") PPID=5095 PS1='\s-\v\$ ' PS2='> ' PS4='+ ' PWD=/export/home/good/gcc-3.4.0 SHELL=/sbin/sh SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor SHLVL=1 TERM=vt100 TZ=US/Eastern UID=0 _=env |
Hi,
Why are you trying to compile gcc? By default it's already installed under /usr/sfw/bin. If you don't have it, you can use your installation media to install it. Then change your PATH to: Code:
PATH=/usr/sfw/bin:$PATH Regards |
All times are GMT -5. The time now is 07:49 AM. |