Red Hat, CPAN, and Intense, Throbbing Pain
just in case you ever find yourself admin of a Red Hat 9 server, you might want to make a note of this, just so you don’t spend HOURS OF YOUR TIME DIGGING THROUGH USENET LOOKING FOR THE ANSWER LIKE I DID.
Let’s say, hypothetically speaking, that you wanted to install some Perl modules on your server. The easiest way to do that is to use CPAN.pm or its successor, CPANPLUS, both of which provide a nice shell interface to the CPAN module repository. However, after a while you will notice that some modules just won’t install properly, no matter what you do. (If you’re like me, you’ll find that you can’t even make CPANPLUS to begin with.)
The issue turns out to be that Red Hat has set the LANG environment variable to UTF-8 by default, which seems to bork something serious within Perl. So, just issue the following command from the shell:
… and now all your modules will install without a hitch.
Easy, huh? Sure would be nice if anybody DOCUMENTED IT ANYWHERE! (He said, looking around for a sharp object or large-caliber firearm.)