LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2011, 07:04 AM   #1
gzm168
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
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
 
Old 11-09-2011, 07:45 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,084

Rep: Reputation: 1655Reputation: 1655Reputation: 1655Reputation: 1655Reputation: 1655Reputation: 1655Reputation: 1655Reputation: 1655Reputation: 1655Reputation: 1655Reputation: 1655
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
Or you can get the one from sun freeware and you pkgadd to install it, along with its dependencies

Regards

Last edited by bathory; 11-09-2011 at 07:51 AM. Reason: More info
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install gcc on solaris 10????? ziadh Solaris / OpenSolaris 24 01-20-2011 08:26 AM
Solaris 10 on AMD. 'Cannot display this video mode' error kukufzr Solaris / OpenSolaris 9 06-21-2006 11:17 AM
Install or not install newest GCC version on Solaris 10. Zepiroth Solaris / OpenSolaris 6 05-26-2006 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration