You need to recompile your PHP from sources with the option --with-gd. See http://moodle.org/mod/forum/discuss.php?d=4454#20081 for further details.
General help
Installing GD
This discussion has been locked so you can no longer reply to it.