1#check php verison first using:
2
3$php -v
4
5#It will give version number suppose your version is 7.0.1 then use this command to install GD Library
6
7$sudo yum install php70-gd
8
9#OR use this command depending upon server specification
10
11$sudo apt-get install php7.0-gd