CPAN won't install Perl GD module on Ubuntu 9.04

Tags:

The 'cpan' command won't "install GD" as it complains that the GD library is not found. Although GD is installed in Ubuntu by default, you need the developer library. What you want instead is:

$ sudo apt-get install libgd-gd2-perl
$ perl
use GD;

(works!)