Creating new IO::Tty by proc-lib.pl using p5-IO-Tty fails.

Operating system FreeBSD 7.1
Virtualmin version 3.66 Pro
p5-IO-Tty 1.07

Installation of the Perl modules fails with the following error message:

Example #1:
Downloading http://www.cpan.org/authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz (259143 bytes) ..
.. download complete.

HTTP/1.0 500 Perl execution failed Server: MiniServ/0.01 Date: Mon, 23 Feb 2009 04:23:07 GMT Content-type: text/html Connection: close
Error - Perl execution failed

Cannot create a new IO::Tty from fd 7: Bad file descriptor at /usr/local/webmin/proc/proc-lib.pl line 272

Example #2:
Downloading http://www.cpan.org/authors/id/M/MS/MSERGEANT/DBD-SQLite2-0.33.tar.gz (363277 bytes) ..
.. download complete.

HTTP/1.0 500 Perl execution failed Server: MiniServ/0.01 Date: Mon, 23 Feb 2009 04:27:56 GMT Content-type: text/html Connection: close
Error - Perl execution failed

Cannot create a new IO::Tty from fd 7: Bad file descriptor at /usr/local/webmin/proc/proc-lib.pl line 272

Status: 
Closed (fixed)