cc not found error in compiling perl modules

:rolleyes:

make cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION="2.121\" -DXS_VERSION=\"2.121\" -KPIC -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE Dumper.c make: cc: Command not found make: *** [Dumper.o] Error 127 
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.13\" -DXS_VERSION=\"1.13\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DDBI_NO_THREADS Perl.cRecompile perl with -DDEBUGGING to use -D switchRecompile perl with -DDEBUGGING to use -D switchUnrecognized switch: -=64 (-h will show valid options).make: *** [Perl.o] Error 255 

--------------------------------------------------------------------
thought of posting it here since i got stuck for a while doing it so that it would be of help to readers
---------------------------------------
got it resolved by the following
check perlgcc is installed or not ,
and run the compile with
perlgcc Makefile.pl
make
make test
make install
and life is good with it