I see no problem with doing that. You will need to compile perl from source and set the directories you describe with the compile-time options...
Tim > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Ben Kennish > Sent: 16 April 2002 15:23 > To: [EMAIL PROTECTED] > Subject: Allowing admin to install Perl modules in > /usr/local/lib/perl5... > > > Hi all, > > Here is a familiar question that I have asked a number of times yet > noone has yet come up with an answer. Just wondering whether someone > out there might have a solution! :) See the following URL for a > previous thread... > > http://www.mail-archive.com/[email protected]/msg02206.html > > The skel that we are using (freevsd-skel-1_4_10-1rh6 from the idaya cd) > does not seem to allow the 'admin' user to install Perl modules by > default (as none of the directories in @INC are writable by admin) > > The can be solved (ish) by chowning all the directories below > /usr/lib/perl5 to admin. But it isnt very nice (errors about > perldoc.pod) and it means that the admin user cannot update modules that > already exist (in skel) if he/she chooses. > > So my proposed solution is to allow the user to write to > /usr/local/lib/perl5 and to get perl to look here for modules before > trying /usr/lib/perl5 (where the skel files are) > > I basically want it to act like the admin user has typed... > > perl Makefile.PL PREFIX=/usr/local/lib/perl5 > > ...when they install a Perl module and for it to act like they have > put... > > use lib /usr/local/lib/perl5 > > ... In each script without them actually having to do it. Is this > possible and if so, anyone got an idea how? > > Thanks, > > > 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 -----------------------------------------------------------------------------
