You are viewing cpm

Chaz Meyers - CPAN as a non-root user doesn't need to be painful. [entries|archive|friends|userinfo]
Chaz Meyers

[ website | chazmeyers.com ]
[ profile | view profile ]
[ archive | view archive ]

Links
[Links:| chazmeyers.com Twitter ]

CPAN as a non-root user doesn't need to be painful. [Dec. 13th, 2005|02:47 pm]
Previous Entry Add to Memories Share Next Entry
[Tags|, , , ]

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

Comments:
[User Picture]From: ewindisch
2005-12-16 01:46 am (UTC)

(Link)

You know... there are shared hosting providers that let you do this stuff without hassle -- or they will do it for you without much more than an email or IM.

And if you have to go through all of that hassle, I'd imagine that your host also isn't providing fastcgi to actually get some performance out of those application frameworks ;-)
[User Picture]From: cpm
2005-12-16 02:24 am (UTC)

(Link)

It's worse. ;) We're on a dedicated server. We don't get root, and they charge $50 to install stuff not in the stock system.

(We paid for FastCGI already, so our lives won't be too miserable, thanks. :)

I like not having to ask anyone for help installing perl modules anyway. :)
[User Picture]From: ewindisch
2005-12-16 04:54 pm (UTC)

(Link)

I wouldn't call it a dedicated server if you don't get root :P Are you sure it isn't a VDS? I won't comment on those prices.. hey, maybe I'm charging too little!

The way I do it with my company is -- if clients want to run someone custom, go ahead and install it yourself, but we would prefer installing it for them because it makes it that much easier for the other users that might want it. We never charge to install software for clients, since it diversifies our offerings, and strengthens the brand.
[User Picture]From: cpm
2005-12-16 07:45 pm (UTC)

(Link)

I'm fairly certain it's not VDS. I think this plan is more targetted toward people who are running CGI processes which require a lot of the CPU's attention, not necessarally people who are familiar with UNIX and want to pimp out their account.

(And, I think they just don't want to worry about fixing things up the user plays with and breaks. Take Chris for example. Every few months he asks me if he can move or delete all the dotfiles in our home directory to "clean things up". In that respect, I am happy we do not have root.)