How to Install GD Library For PHP5 On CentOS November 26, 2010Posted by Tournas Dimitrios in Linux.
GD is an open source code library for the dynamic creation of images by programmers. GD is written in C, and “wrappers” are available for Perl, PHP and other languages. GD creates PNG, JPEG and GIF images, among other formats. GD is commonly used to generate charts, graphics, thumbnails, and most anything else, on the fly. While not restricted to use on the web, the most common applications of GD involve website development.
GD has moved!
The GD library has moved to libgd.org, thanks to the hard work of Pierre Joye of the PHP project. The project is now headed by Pierre Joye, a well-known PHP developer. Pierre welcomes the contributions of distribution maintainers and other developers.
Yes, gd will continue to support other languages as well as PHP. After all, the larger the community fixing bugs, the better gd is for everyone.
Version 2.0.34 has been released by Pierre, incorporating many important fixes. Major feature changes will appear in a forthcoming gd 2.1.x series.
The latest bleeding-edge GD code can be obtained via CVS – and you’re welcome to join the team!
Visit www.libgd.org for more information.
How to install gd on CentOs 5.x :
An easy task, using yum. First step, see if it’s already installed.
[root@srv]# rpm -qa | grep php
If the GD Library isn’t present in that list, it wasn’t installed on the server yet. Install it using yum : yum install php-gd
Easy going, isn’t it?
Restart your apache, and you’re ready to rock.