Home >Backend Development >PHP Tutorial >Sharing steps for installing GD library in php5
make
2, download the freetype library, many GD functions require the support of this library
http://ftp.twaren.net/Unix/NonGNU/freetype/freetype-2.3.5.tar.gz
cd freetype-2.3.5
3. Download the GD library
Choose the appropriate version to download from http://www.libgd.org
./configure --prefix=/usr/local/gd2 --with-png --with-freetype #You don’t need to specify the freetype directory, you need to specify the installation path of the gd library
4, compile PHP
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --without-sqlite --
Restart the apache service and complete the installation of the PHP5 GD library.
|