Call to undefined function gd_info()
I have installed PHP GD lib on my local machine now it is working fine.
Here is the command for install GD lib in Ubuntu.
sudo apt-get install php5-gdsudo service apache2 restart
For those which will come to see this question. In addition to installing php-gd, you need to restart the apache and php-fpm, if you have php-fpm installed.
sudo yum install php-gdsudo service httpd restartsudo service php-fpm restart