Local installation of perl module

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I need to install a perl module without root privileges.
I've followed some advices found on the web: created a .cpan directory,
copied Config.pm, renamed it in MyConfig.pm and changed all the
'/root/.cpan' instances with my local .cpan dir, created a local perl
dir and changed PERL5LIB and MANPATH variables.
Then, I launched

perl -MCPAN -e 'shell'

changed the settings with 'o conf' and then:

install XML::Parser

Everything goes well up to when it has to actually install the module,
becuase it still tries to do it in the root installation:

Warning: You do not have permissions to install into
/usr/local/perl-5.8.3/lib/site_perl/5.8.3/i686-linux at
/usr/local/perl-5.8.3/lib/5.8.3/ExtUtils/Install.pm line 114.
Permission denied at
/usr/local/perl-5.8.3/lib/5.8.3/ExtUtils/Install.pm line 176
make: *** [pure_site_install] Error 255
  /usr/bin/make install  -- NOT OK
    You may have to su to root to install the package

What am I missing?



Re: Local installation of perl module

burkina wrote:
Quoted text here. Click to load it


Quoted text here. Click to load it

The Perl FAQ?

     perldoc -q "install a module"

     perldoc -q "my own"

Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Re: Local installation of perl module

I was trying to do it automatically with CPAN, there were instructions
on the web to do that.
In any case, the manual installation worked!

Thank you Gunnar,


Site Timeline