in reply to Module Installation Errors

It appears that the test script is trying to cause a warning by making a file unreadable, then reading it. This fails as root, because root can read anything. Try running the test as a normal user, and see if it passes. If it does, you can go ahead and force install as root.

Many people prefer to use a build system (like perlbrew) that installs modules as a normal user so that they don't need to run cpan as root.

Replies are listed 'Best First'.
Re^2: Module Installation Errors
by bithead42 (Initiate) on Feb 07, 2017 at 19:24 UTC

    Thanks for the explanation. Running the cpan installation as a normal user and using the 'sudo' method did the trick - the script runs now! As for perlbrew, this looks like it installs and upgrades perl itself, not perl modules - is that correct? For the installation of perl itself, I used the Debian package appropriate to my installation.

    Thanks again!
      Yes, it does both things (installing perl and installing modules) without needing root. Glad you got it to work!