in reply to Query about installing perl modules in local directory

If you're specifying a PREFIX, you don't need to specify LIB or INSTALLDIRS:
$ perl Makefile.PL PREFIX=/tmp Checking if your kit is complete... Looks good Writing Makefile for XML::RegExp $ make cp lib/XML/RegExp.pm blib/lib/XML/RegExp.pm Manifying blib/man3/XML::RegExp.3 $ make install Installing /tmp/lib/perl5/site_perl/5.8.8/XML/RegExp.pm Installing /tmp/man/man3/XML::RegExp.3 Writing /tmp/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/auto/XM +L/RegExp/.packlist Appending installation info to /tmp/lib/perl5/5.8.8/i686-linux-thread- +multi/perllocal.pod
updated: better formatting

Replies are listed 'Best First'.
Re^2: Query about installing perl modules in local directory
by viswa79 (Initiate) on Jul 29, 2007 at 18:33 UTC
    Thanks for your reply. However I stilll get the following error: Warning: You do not have permissions to install into /usr/perl5/site_perl/5.005/sun4-solaris at /usr/perl5/5.00503/ExtUtils/Install.pm line 61. mkdir /usr/perl5/5.00503/man: Permission denied at /usr/perl5/5.00503/ExtUtils/Install.pm line 57 make: *** pure_site_install Error 2 I just donot know why I am getting this. Do I need to send any environment variables. I am unable to understand and I really need help on this front. Daita