Local installation of perl module

Local installation of perl module

am 05.09.2005 18:07:45 von burkina

Hi,

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

Re: Local installation of perl module

am 05.09.2005 19:24:36 von Gunnar Hjalmarsson

burkina wrote:
> I need to install a perl module without root privileges.
> I've followed some advices found on the web:



> What am I missing?

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

am 06.09.2005 10:14:46 von burkina

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,

Stefano