Unable to Install Samba, Need help ?

I was trying to aquinted with Samba on Solaris, I downloaded the latest samba software from http://samba.org , used the gunzip command to convert to tar, and used the tar xvf to extract it. and then I did the following

# cd samba-3.2.2

# cd source

#./configure

then i got an error that the system does not have any C compiler

# ./configure

SAMBA VERSION: 3.0.24

checking for -fPIE...

checking for gcc... no

checking for cc... no

checking for cl.exe... no

configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details.

#

then I downloaded the GCC from internet and did the same thing but I am also helpless because it says

# cd /opt/download

# ls

gcc-3.3.2 gcc-3.3.2.targcc.pdfsamba-3.0.24samba-latest.tar

# cd gcc-3.3.2

# ./configure

Configuring for a sparc-sun-solaris2.9 host.

Created "Makefile" in /opt/download/gcc-3.3.2 using "mh-frag"

./configure: cc: not found

*** The command 'cc -o conftest -gconftest.c' failed.

*** You must set the environment variable CC to a working compiler.

This is the error which I am finding on it.

If anybody know the solution for it please let me know at wmlakha@yahoo.com

Thanks

[1319 byte] By [Wamiqa] at [2007-11-26 23:38:07]
# 1
You can't build a c compiler from source because you don't have a c compiler.You need to grab a precompiled C compiler.Try grabbing one of the gcc packages off sunfreeware.com
robert.cohena at 2007-7-11 15:02:14 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...