Local installation of perl module
am 05.09.2005 18:07:45 von burkinaHi,
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.
mkdir
/usr/local/perl-5.8.3/lib/site_perl/5.8.3/i686-linux/auto/XM L/Parser:
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?
Thanks,
Stefano