It is true that some packages under UNIX require the user to be "root". When installing Template::Toolkit it triggered AppConfig, which bailed out with:
You may have to su to root to install the package
(Or you may want to run something like
o conf make_install_make_command 'sudo make'
to raise your permissions.
Cygwin is not UNIX. It is just a set of UNIX utilities for Cygwin. There is no root user and no sudo and no way to fake it. If you run Bash as administrator this has not the effect of somehow becoming root. (Actually it can be dangerous.)
The actual problem was that /usr/man/man3 had no permissions:
> ls -ls /usr/share/man
total 1.2M
384K d--------- 1 spindlea Domain Users 0 Oct 29 18:55 man1/
768K d--------- 1 spindlea Domain Users 0 Oct 29 18:55 man3/
8.0K d--------- 1 spindlea Domain Users 0 Oct 29 12:35 man5/
12K d--------- 1 spindlea Domain Users 0 Oct 6 16:26 man7/
12K d--------- 1 spindlea Domain Users 0 Oct 29 12:35 man8/
0 d--------- 1 spindlea Domain Users 0 Oct 6 16:26 mann/
So the man-pages could not be installed. Reason: C:/Cygwin was unpacked from an archive. Under NTFS file systems, Cygwin by default implements UNIX permissions on Windows ACLs (although you can't see them in the "Security" tab). These did not survive the ZIP archive.
To restore the permissions use something like:
> chmod -R 755 /usr/bin # sets -rwxr-xr-x
> chmod -R 755 /usr/local/bin # sets -rwxr-xr-x
> find /bin -type d -print -exec chmod 777 {} \;
> find /etc -type d -print -exec chmod 777 {} \;
> find /usr -type d -print -exec chmod 777 {} \;
.
.
Problem gone. The installation went through without problems. CPAN was able to satisfy all dependencies.
No "You may have to su to root to install the package" errors anymore.