And once you've installed the modules, you'll need to either append your "personal 
library" to the 'PERL5LIB' environment variable or include the 'use lib' pragma in 
your program.

Karl
  ----- Original Message ----- 
  From: drieux 
  To: begin begin 
  Sent: Thursday, September 12, 2002 6:58 PM
  Subject: Re: Mod Installations -- as non root



  On Thursday, Sep 12, 2002, at 16:30 US/Pacific, Jeff wrote:

  > I want to install some mods on my Unix system but don't have root 
  > access.  Is there
  > a way to do a local installation (ie, under my home directory)???  
  > Seems you have to
  > be root since there is some linking to the system libraries.
  >
  > I've checked the documentation for perlmodinstall, but don't see the 
  > answer to this.
  >  Thanks in advance,

  the answer is to set a few basic variables when you
  are doing the

  perl Makefile.pl

  I have a script I use, see below so that I have it all
  nice and neatly set to put it in

  $HOME/lib/perl

  with the man pages installing in

  $HOME/man

  rather than having to remember that it would be

  perl Makefile.pl PREFIX=$HOME LIB=$HOME/lib/perl ....



  ciao
  drieux

  ---

  ### #!/usr/bin/perl -w
  ### use strict;
  ### #
  ### #/home/drieux/bin/PerlInstall - you know to install stuff locally
  ### #
  ###
  ### my $prefix = $ENV{HOME};
  ### my $lib = "$prefix/lib/perl";
  ### my $man = "$prefix/man";
  ### my $cmdArgs = "PREFIX=$prefix LIB=$lib ";
  ### $cmdArgs .= " INSTALLMAN3DIR=$man/man3 INSTALLMAN1DIR=$man/man1";
  ###
  ### my $cmd = "perl Makefile.PL $cmdArgs";
  ###
  ### system("make clean");
  ###
  ###
  ### system($cmd);
  ### system("make test");
  ### system("make install");


  -- 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to