[wplug] rpmpan

Jonathan S Billings billings at negate.org
Mon Sep 22 15:30:15 EDT 2003


Unless you recompile perl, there is no way to add a directory to it's
@INC.  You could put 'use lib "/usr/lib/perl5/5.6.1/i386-linux";' in
your scripts, but that probably isn't what you want to hear.  

I suggest fixing the program that is installing libraries, make sure
they install in the correct place.

On Mon, 2003-09-22 at 15:25, John Harrold wrote:
> i'm trying to use rpmpan under redhat 9 and i have a bit of a dilema. under
> redhat 9, the @INC variable has the following directories:
> 
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/5.8.0
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0
> /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0
> /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/5.8.0
> 
> now the rpmpan is made such that files are installed in:
> 
> /usr/lib/perl5/5.6.1/i386-linux
> 
> so i want to include this direcotory in @INC, i can do that by exporting:
> 
> export PERLLIB='/usr/lib/perl5/5.6.1/i386-linux'
> 
> my question is how do i do this systemwide so that my cgi-scripts will use
> this?  simply sticking it in /etc/bashrc doesn't seem to work.
-- 
Jonathan S Billings <billings at negate.org>
TSFNKP, President and Chief Lackey




More information about the wplug mailing list