Just an idea (untested - just a thought).... What about making a symlink in the skel of:
/usr/lib/perl5/site_perl/ to: /usr/local/lib/perl5/ then replicate to all the vs's - though this would be a tricky one... This would work though, I think..... though don't quote me on it... ----- Original Message ----- From: "Ben Kennish" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 4:03 PM Subject: Perl Modules > Hi all, > > I have asked this many times but I've never really come across a > satisfactory solution so here goes... > > How can Perl be configured so that the @INC array contains > /usr/local/lib/perl5 (because I want the admin user of a VS to be able > to install Perl modules and /usr/lib/perl5/... is a no-no because its > part of the skel.) > > Ideally, I'd like Perl to look for modules in /usr/local/lib/perl5 > first and then if they are not there, look in /usr/lib/perl5 (the > skel). Also, I recall that Perl (or CPAN?) keeps a log of installed > modules - is there any way to get it to use a file in > /usr/local/lib/perl5 so that the 'admin' user has write perms to it? > > I know that you can add to @INC by running Perl like... > > /usr/bin/perl -I /usr/local/lib/perl5 > > .. but it'll be a bit annoying for our customers to have to do this to > all their scripts > > Is this all only possible with a recompile? (I hate Perl at the best > of times) :( > > Kind Regards, > > -- > Ben Kennish > [EMAIL PROTECTED] > > ------------------------- The freeVSD Support List -------------------------- > Subscribe: mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support > Unsubscribe: mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support > Archives: http://freevsd.org/support/mail-archives/freevsd-support > -------------------------------------------------------------------------- --- > ------------------------- The freeVSD Support List -------------------------- Subscribe: mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support Unsubscribe: mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support Archives: http://freevsd.org/support/mail-archives/freevsd-support -----------------------------------------------------------------------------
