gcc on solaris 7

i try this on my sun server with solaris 7 as root


[/usr/local/gcc-2.8.1] ./configure --build=sparc-sun3-sunos
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.7
checking target system type... sparc-sun-solaris2.7
checking build system type... sparc-sun3-sunos
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... no
configure: error: installation or configuration problem: C compiler cannot creat
e executables.

now, i copied cc from /usr/ucb/ into /usr/bin/ as this is where
it looks for cc....before, when cc was not in /usr/bin/ it would find it but now it does find it.....

                       
but the problem is
"checking whether the C compiler (cc  ) works... no
configure: error: installation or configuration problem: C compiler cannot creat
e executables."

here is my PATH
/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/ucb:/etc:.:/usr/openwin/bin:/usr/local/bin:
/usr/AnswerBook:/usr/lib/lp/postscript:/home/relman/Environment/bin:/usr/ucb/cc:
/usr/bin/cc      

how do i fully install gcc???
paulwhelanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

argoCommented:
check that cc really is the c compiler

If the c compiler is not installed, they put a script in its place,
run cc yourself and see what you get.

if its

/usr/ucb/cc:  language optional software package not installed

you have no c compiler.
0
n0thingCommented:
A C compiter doesn't come by default on Solaris.
You could download the current gcc compiler and
other GNU goodies at http://www.sunfreeware.com
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.