If you are using a Turnkey LAMP Virtual Server you may find that when you try to install a Perl module from CPAN, the build may fail.
It’s a simple fix, you just need to install build-essential
first.
apt-get update
apt-get install build-essential
Now when you try to install your Perl modules from CPAN they should work.