|CPAN as a non-root user doesn't need to be painful.
||[Dec. 13th, 2005|02:47 pm]
I had my biggest "der" moment ever last night. For both personal and work reasons, I've been fighting with installing Perl modules on webhosts where I do not have root for a long time. CPAN provides some documentation on doing this, but what they provide doesn't seem to do enough for every module, and seems to especially break when CPANPLUS is involved.
After Googling for the answer for the billionth time, I came across Bugzilla's recommendation: Compile your own perl in your home directory and don't worry about it.
This works like a charm! I had to tweak my CPAN and CPANPLUS config files a little, but I think that was just because I was trying to do things the hard way earlier. It takes up more space, but now at least I get to play with Catalyst in shared hosting environments without any problems at all. (Wow. Catalyst isn't in the top three when googling for it? Kind of odd for an OMGRADWEBTWOPOINTOHFRAMEWORK.)