Subject: | Can't bootstrap local::lib on Ubuntu (permission problem) |
After downloading local-lib 1.006000 on Ubuntu 8.04, and calling
perl Makefile.PL --bootstrap
it pulls in various modules from CPAN and breaks at CPAN.pm, which it
tries to update in the main root and fails because it's running under
user permissions. It would probably work with root permissions, but I
don't want to modify any files that are maintained by the package manager.
Output below, would be great if you could look into it. Thanks!
CPAN-1.9402/
Running make install
Warning: You do not have permissions to install into /usr/lib/perl/5.8
at /usr/share/perl/5.8/ExtUtils/Install.pm line 114.
Cannot forceunlink /usr/share/perl/5.8/CPAN.pm: Permission denied at
/usr/share/perl/5.8/File/Find.pm line 924
make: *** [pure_perl_install] Error 13
/usr/bin/make install -- NOT OK
You may have to su to root to install the package
commit: wrote /home/mike/.cpan/CPAN/MyConfig.pm
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
[Core Features]
- ExtUtils::MakeMaker ...too old. (6.30_01 < 6.31)
- ExtUtils::Install ...too old. (1.33 < 1.43)
- ExtUtils::CBuilder ...loaded. (0.18)
- ExtUtils::ParseXS ...loaded. (2.15)
- Module::Build ...loaded. (0.2808 >= 0.28)
- CPAN ...too old. (1.7602 < 1.82)
==> Auto-install the 3 mandatory module(s) from CPAN? [y] y
*** Dependencies will be installed the next time you type 'make'.
(You may need to do that as the 'root' user.)
*** Module::AutoInstall configuration finished.
*** Installing dependencies...
*** You are not allowed to write to the directory
'/usr/local/share/perl/5.8.8';
the installation may fail due to insufficient permissions.
==> Should we try to re-execute the autoinstall process with 'sudo'? [y] y
*** Trying to re-execute the autoinstall process with 'sudo'...
[sudo] password for mike: