Subject: | module reported as successfully installed after failing from permissions issues |
Hello,
I just tried running cpanp as a non-root user to see what would happen. What I hoped would happen is this:
CPANPLUS would notice: "Oh, you don't have permission to make functional use of this configuration. I'll ask you if you'd like to set up your own configuration for ~user/.cpanplus now".
To test, I arbitarily picked the Util module to install, since I knew it wasn't already installed and I don't use it. What follows is a partial output of that installation attempt.
You can see that there a number of failures due to permissions problems. Yet, ultimately CPANPLUS declares that "All modules installed successfully".
Extracting Util-0.07/
Extracting Util-0.07/t/
Extracting Util-0.07/t/text.t
Extracting Util-0.07/t/debug.h
Extracting Util-0.07/t/debug.pl
Extracting Util-0.07/t/io.t
Extracting Util-0.07/t/Node.pm
Extracting Util-0.07/t/misc.t
Extracting Util-0.07/t/math.t
Extracting Util-0.07/t/clone.t
Extracting Util-0.07/Util.xs
Extracting Util-0.07/Changes
Extracting Util-0.07/MANIFEST
Extracting Util-0.07/Util.pm
Extracting Util-0.07/TODO
Extracting Util-0.07/Makefile.PL
Extracting Util-0.07/README
Running [/usr/bin/gzip -cd /usr/src/.cpanplus/authors/id/C/CH/CHOCOLATE/Util-0.07.tar.gz | /usr/local/bin/tar -xf -]...
/usr/local/bin/tar: Util-0.07: Cannot mkdir: Permission denied
/usr/local/bin/tar: Util-0.07/t: Cannot mkdir: No such file or directory
/usr/local/bin/tar: Util-0.07/t/text.t: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/t/debug.h: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/t/debug.pl: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/t/io.t: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/t/Node.pm: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/t/misc.t: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/t/math.t: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/t/clone.t: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/Util.xs: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/Changes: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/MANIFEST: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/Util.pm: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/TODO: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/Makefile.PL: Cannot open: No such file or directory
/usr/local/bin/tar: Util-0.07/README: Cannot open: No such file or directory
/usr/local/bin/tar: Error exit delayed from previous errors
tar/gzip error: No such file or directory in CPANPLUS::Internals::Extract::_untar at Sat Nov 15 12:22:23 2003 at /usr/local/lib/perl5/site_perl/5.8.0/CPANPLUS/Internals/Extract.pm line 284
Key 'dir' is of invalid type for CPANPLUS::Internals::Install::_check_signature provided by CPANPLUS::Internals::Install::_install_module at /usr/local/lib/perl5/site_perl/5.8.0/CPANPLUS/Internals/Install.pm line 576
Signature checking failed for /usr/src/.cpanplus/authors/id/C/CH/CHOCOLATE/Util-0.07.tar.gz in CPANPLUS::Internals::Install::_install_module at Sat Nov 15 12:22:23 2003 at /usr/local/lib/perl5/site_perl/5.8.0/CPANPLUS/Internals/Install.pm line 153
Successfully installed Util
All modules installed successfully