Install RT dependencies using CPAN

Hello List,
Could you possibly direct me to the right list ? I’m
trying now to install RT dependencies using CPAN interface. I have
configured it. It almost works. It means, that it finds a module in CPAN
Archive, copies it, then
make - OK
make test - OK
make install - FAILS with following error:

Can’t call method “close” on an undefined value at … CPAN.pm line6200

Best regards

Mariusz Stakowski