how to add cc path

hello ,
when i am deploying a server software , i am getting this error:
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
can any body help , how to correct this. , i have shown my path statement.

# echo $PATH
/usr/sbin:sbin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb

thanx in advance.
definate

Do you have a c compiler ? I have a doubt on it

If your C-compiler's name is different from "gcc" or "cc" you can
start configure like this:

CC="cc_name" ./configure

If this is not your problem (e.g. there is gcc or cc in your path),
please provide more information about your operating system and
platform.

In order to compile software, i.e. to turn it from source code into executables, you need a compiler. Traditionally, this compiler is referred to as 'cc' (/usr/bin/cc). If a compiler is installed, '/usr/bin/cc' is a symlink (a pointer) to the 'real' compiler executable, usually gcc:

$ ls -l /usr/bin/cc
lrwxrwxrwx 1 root root (..) /usr/bin/cc -> gcc*

hello ,
when i type ls -l /usr/bin/cc , i get no such file or dir , but when i type in /usr/ucb/

# ls -l cc
-r-xr-xr-x 1 bin bin 3487 Sep 1 1998 cc

my system is sparc and os is solaris7.
thanx , i dont know wheather i have c compiler or not?
definate.

try man cc or man gcc what is the output you get ? If there is some mannual page appear then your system do contain a c compiler. If it gives you some thing like bad command or bash:command not found. Then certainly there dont have a c ompiler on it. Give a try. Do post back the outcome.

hey yeah i have a c compiler..out put is something like this...
# man cc
Reformatting page. Wait... done

SunOS/BSD Compatibility Package Commands cc(1B)

NAME
cc - C compiler

SYNOPSIS
/usr/ucb/cc [ options ]
out put truntured...
ok so how do i set the path , ...so that im able to configure ,

thanx a lot in advance

If you want to set the path, try this at the prompt...
export PATH=$PATH:/usr/ucb/cc
The path will be set with this...

hi ,
this what i get:
# export PATH=$PATH:/usr/ucb/cc
PATH=/usr/sbin:sbin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb:/usr/ucb/cc: is not an identifier

can u help plz.
definate