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
you need to to tell cpan compiler to make Sun compiler understood the options. Open below file to edit.
/usr/perl5/5.8.4/lib/sun4-solaris-64int/Config.pm
Change following options:
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
[ref] GCC on Solaris
