undefined function imagecreatefromjpeg()

Call to undefined function imagecreatefromjpeg() in /home/materi/prog/cms_study/admin/pageuploadadd.php on line 88
 
Yes, that message show up when my friend try to access web based application.

I think thats my fault icon smile undefined function imagecreatefromjpeg()

Doing preliminary check :

edp# pkg_info | grep php5-gd
edit /etc/make.conf

PERL_VER=5.8.8
PERL_VERSION=5.8.8
WITHOUT_X11=yes

save.

edp# whereis php5-gd
php5-gd: /usr/ports/graphics/php5-gd
edp# cd /usr/ports/graphics/php5-gd && make install

edp# apachectl restart
done.

That message disappear icon smile undefined function imagecreatefromjpeg()