On Tue, 2003-01-28 at 20:31, Peter Kiem wrote:
> I'm trying to install RRDTOOL as it is required by MailGraph which I am
> trying to setup.
> 
> Now the system is Perl 5.6.0 but the RPM for RRDTOOL is installing into
> /usr/lib/perl5/5.6.1 and hence the Perl scripts cannot find the modules.
> 
> How do I make Perl also look in /usr/lib/perl5/5.6.1 instead of just in
> /usr/lib/perl5/5.6.0 and /usr/lib/perl5/site_perl?
> 


Seems like you can set and environment var.  In bash :

export PERL5LIB="/usr/lib/perl5/5.6.1"

or from my handy dandy perl cookbook cd :

Probably the most convenient solution from your users' perspective is
for you to add a use lib pragma near the top of your script. That way
the users of the program don't need to take any special action to run
your program. Imagine a hypothetical project called Spectre whose
programs rely on its own set of libraries. Those programs could have a
statement like this at their start:

use lib "/projects/spectre/lib";

I am afraid I don't know where @INC gets set initially

BTW you can see the paths used with 

perl -V

Bret



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to