| Main |

Red Hat, CPAN, and Intense, Throbbing Pain

Posted on Thursday, January 22, 2004

Hey kids...

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:

unset LANG

... 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.)

1 Comments

Excellent! It took me 2 days of agonizing over the stupidity of RH9 before I found your post.
You saved precious years of my life :)

Leave a comment


Recently on Just Well Mixed

Going Meta

Syndicate Me, Baby

Feed iconWeb feed

Share and Enjoy

Except where otherwise noted, all content on this site is provided under the terms of the Creative Commons Attribution-ShareAlike license.

Obligatory Disclaimer

If you think anything I write here represents the opinions of anybody but myself, you need more help than I can give you. The opinions are all mine, folks. Nobody else's.

If that's too hard to understand... well, I'm sorry. There's only so much I can do. I'm not a therapist, and I'm not a miracle worker. I wish I could help you work through your delusional belief that I'm speaking for anyone else but myself. Honestly, I do. But in the end, that's a monkey you'll have to get off your back on your own. Sorry.