MESSAGE
DATE | 2002-10-10 |
FROM | Ruben Safir
|
SUBJECT | Subject: [hangout] Re: [nylug-talk] Re: perl modules for users
|
Actually, thinking about the DBI problem, there the trouble I've had with this is needing root to compile the DBD so your example might be helpful for a larger set of problems (although it would be just easier to set the PERLIB env in bashrc.
In fact, Apache pretty much does that for mod perl and then the obvious limitation is that the application will only work in your specific shell unless PERLLIB is set in skell or what have you.
So your approach might not be that bad, especially if you want to set the path to something like /usr/local/userspace/lib - or something like that.
Seems more straight forward to create group staff and open the library directory, which does the same thing and pretty much guarantees everything plays nice.
Way too often I've run into jobs where developers use their home directories for libraries, and low and behold, the damn thing doesn't work when ported to the working environment.
Another work around is to create a CONGURATION.pm module and fix Makefile.PL to ask the installer where to put things on installation.
Also - I return you to the perldoc CPAN documentations warnings.
Ruben
On Thu, Oct 10, 2002 at 01:21:20PM -0700, Peter C. Norton wrote: > Have you read the docs on PERL5LIB? It doesn't override the default > system path it just tells the perl interpreter to look at the paths > defined in PERL5LIB for a particular library or module before looking > at the default -at-INC. > > -Peter > > On Thu, Oct 10, 2002 at 03:55:20PM -0400, Ruben Safir wrote: > > And then the standard libraries? > > > > > > On Thu, Oct 10, 2002 at 12:23:45PM -0700, Peter C. Norton wrote: > > > On Thu, Oct 10, 2002 at 03:20:34PM -0400, Ruben Safir wrote: > > > > For all users? > > > > > > > > > > > > I think it's fairly difficult, because of module co-dependency. > > > > > > Right, but if a user needs a module or set of modules for themselves, > > > then its not such a big deal. They just build their own dependancies > > > and set PERL5LIB when the execute their programs. I.e. if they're > > > especially thorough they can use > > > > > > #!/usr/bin/env PERL5LIB=/path/to/perl5lib perl > > > > > > instead of #!/usr/bin/perl at the top of their programs. > > > > > > -Peter > > > > > > -- > > > The 5 year plan: > > > In five years we'll make up another plan. > > > Or just re-use this one. > > > _______________________________________________ > > > The nylug-talk mailing list is at nylug-talk-at-nylug.org > > > To subscribe or unsubscribe: http://herzl.nylug.org/mailman/listinfo/nylug-talk > > > > -- > > __________________________ > > > > Brooklyn Linux Solutions > > __________________________ > > DRM is THEFT - We are the STAKEHOLDERS http://www.nyfairuse.org > > > > http://www.mrbrklyn.com - Consulting > > http://www.nylxs.com/radio - Free Software Radio Show and Archives > > http://www.brooklynonline.com - For the love of Brooklyn > > http://www.nylxs.com - Leadership Development in Free Software > > http://www.nyfairuse.org - The foundation of Democracy > > http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from around the net > > http://www2.mrbrklyn.com/mp3/dr.mp3 - Imagine my surprise when I saw you... > > http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn.... > > > > 1-718-382-5752 > > > > > > > > _______________________________________________ > > The nylug-talk mailing list is at nylug-talk-at-nylug.org > > To subscribe or unsubscribe: http://herzl.nylug.org/mailman/listinfo/nylug-talk > > -- > The 5 year plan: > In five years we'll make up another plan. > Or just re-use this one. > _______________________________________________ > The nylug-talk mailing list is at nylug-talk-at-nylug.org > To subscribe or unsubscribe: http://herzl.nylug.org/mailman/listinfo/nylug-talk
-- __________________________
Brooklyn Linux Solutions __________________________ DRM is THEFT - We are the STAKEHOLDERS http://www.nyfairuse.org
http://www.mrbrklyn.com - Consulting http://www.nylxs.com/radio - Free Software Radio Show and Archives http://www.brooklynonline.com - For the love of Brooklyn http://www.nylxs.com - Leadership Development in Free Software http://www.nyfairuse.org - The foundation of Democracy http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from around the net http://www2.mrbrklyn.com/mp3/dr.mp3 - Imagine my surprise when I saw you... http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn....
1-718-382-0585
____________________________ New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless....
|
|