[Omaha.pm] Private library

Mat Caughron mat at phpconsulting.com
Wed Sep 21 07:35:50 PDT 2005


When making the module, perhaps:
	perl Makefile.PL PREFIX=/home/bob/lib

Mat

On Wed, 21 Sep 2005, Bob McCoy wrote:
> Thanks, Mat.  I kind of figured that's how I could use it once it was
> installed.  However, the real issue I'm having is trying to figure out
> how to tell the makefile where to install it.  The generic command is
> "make install".  And Ilve been through the Makefile several times and
> haven't figured out what params I need to pass in order for it to
> install it someplace that I have permissions to.
>
> -----Original Message-----
>
> 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 at pm.org
> http://mail.pm.org/mailman/listinfo/omaha-pm
>


More information about the Omaha-pm mailing list