I'm getting the error when I try to execute the following,

perl sbin/rt-test-dependencies --with-mysql --with-fastcgi --install

ERROR:

Install module Term::ReadKey
You haven't configured the CPAN shell yet.
Please run `/usr/bin/perl -MCPAN -e shell` to configure it.

Tried `/usr/bin/perl -MCPAN -e shell` , but I don't know how to configure CPAN.

Any help ASAP is much appreciated.