I am stretching recollections here, but I notice the OP is using Solaris. If he is using the version of Perl supplied by Sun, then it will probably have been compiled with their compiler. I recall that unless we had the same Sun compiler that was used to compile Perl we had to recompile Perl (using gcc) and then we could install modules using CPAN.
Of course I could be totally off beam, and often am!
jdtoronto