Perl CPAN Shell Configuration on Solaris

You might be encounter problem installing per module as below.

cc: unrecognized option `-KPIC' cc: language ildoff not recognized cc: ReadKey.c: linker input file unused because linking not done
/usr/perl5/5.8.4/lib/sun4-solaris-64int/Config.pm
optimize='-O3' cccdlflags=' '

If you have below error while compiling.

gcc: language arch=v8 not recognized

Remove the following option founded in Config.pm file, usually there is 2 location.

-xarch=v8

GCC on Solaris