I installed PHP GD via aptitude and it's showing as installed there. but phpinfo doesn't show it.
This is the error which I can see when I executed php -m from command prompt:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/gd.so' - /usr/lib/php5/20090626+lfs/gd.so: undefined symbol: gdImageCreateFromJpeg in Unknown on line 0
I've tried reinstalling, restarting, etc, but of no use...