|Problems? Is your data what you think it is?|
CPAN shared by multiple usersby jpl (Monk)
|on Jun 18, 2011 at 23:10 UTC||Need Help??|
jpl has asked for the
wisdom of the Perl Monks concerning the following question:
I maintain several different releases of perl on assorted machines, some of which cross-mount my home directory. The releases are shared by other users, who would like to be able to install CPAN modules without root access or funneling requests through me, so the release is writable by a group to which all semi-privileged users belong. We'd like to share a CPAN configuration so, for example, we are locked out of CPAN updates while some other group member is doing an update.
My perceived problem is that, because my home directory is cross-mounted, I cannot have different CPAN configurations for different releases, nor is it easy to share a common configuration among a set of users.
I can use a different configuration via
cpan -j /shared/CPAN/config args
but if I omit the args, I'm not dropped into the CPAN shell with the shared config, I just get a usage message. A quick scan of the CPAN modules doesn't suggest a way to override my home directory as the preferred place to look for a configuration file. I believe I can create a hokey File::HomeDir module to "fool" CPAN, but that seems very heavy handed.
Any monkish advice on setting up release-specific CPAN configurations that can be shared by multiple users?