Walt Mankowski on Wed, 27 Aug 2003 16:47:17 -0400


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

Re: [PLUG] finding the IP


On Wed, Aug 27, 2003 at 03:28:53PM -0400, Paul wrote:
> Ahh.  Quote eXecutable?

Yes.

> Speaking of Perl, how can I fix something like the following without 
> root access?
> 
> Can't locate Switch.pm in @INC (@INC contains: 
> /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 
> /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 
> /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl 
> /usr/lib/perl5/vendor_perl/5.6.1/i386-linux 
> /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at 
> ./qvd-v0.5.pl line 100.
> BEGIN failed--compilation aborted at ./qvd-v0.5.pl line 100.

From perlfaq8:

  How do I keep my own module/library directory?

  When you build modules, use the PREFIX option when generating
  Makefiles:

      perl Makefile.PL PREFIX=/u/mydir/perl

  then either set the PERL5LIB environment variable before you
  run scripts that use the modules/libraries (see perlrun) or say

      use lib '/u/mydir/perl';

  This is almost the same as

      BEGIN {
          unshift(@INC, '/u/mydir/perl');
      }

  except that the lib module checks for machine-dependent subdi-
  rectories.  See Perl's lib for more information.

Attachment: pgp5jkDW4ackW.pgp
Description: PGP signature