[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] Private library (FAQ suggests PERL5LIB shell var)



Hi Bob:


http://www.cpan.org/misc/cpan-faq.html#How_use_private

There are several ways to use modules installed in private directories:

setenv PERL5LIB /path/to/module
		sets the environment variable PERL5LIB.

use lib qw(/path/to/module);
	used at the top of your script tells perl where to find your module.

perl -I/path/to/module

All of these will append /path/to/module to @INC.




Mat




On Wed, 21 Sep 2005, Bob McCoy wrote:
> I need some help installing a private library.  I want to use the
> Cyrpt::Blowfish.pm
> (http://search.cpan.org/~dparis/Crypt-Blowfish-2.09/Blowfish.pm) on the
> UNO Phoenix system.  However, I don't have admin right to install the
> library.  So ...
>
> 1.  What is the appropriate make command line to direct the installation
> to a private directory, e.g., /home/bob/lib?  This is the one I'm really
> stumped on.
>
> 2.  Is "use lib '/home/bob/lib';" sufficient to get it then in the @INC
> array for searching?
>
> Bob
>
> _______________________________________________
> Omaha-pm mailing list
> Omaha-pm@pm.org
> http://mail.pm.org/mailman/listinfo/omaha-pm
>