After installation of Koha on Debian, it seems that installation of remaining cpan modules (e.g. Data::Pagination) reluctant to install via terminal. We need to install following package to install CPAN modules properly:
su
apt-get install build-essential
Then try to install cpan modules from terminal,
cpan
install Package::Name
e.g. install Data::Pagination :Language
e.g. install Data::Pagination :Language
Reference-Koha Geek