sudo apt-get install php7.0-gd
#check php verison first using:
$php -v
#It will give version number suppose your version is 7.0.1 then use this command to install GD Library
$sudo yum install php70-gd
#OR use this command depending upon server specification
$sudo apt-get install php7.0-gd
Xabos