:: what is please take a look at this. :: case we can build php with support mysql, apache, gd, jpeg, png, freetype, curl, zlib, mcrypt , mbstring, ftp. :: compile and install dependency for php support - apache - mysql - gd [ compile and installing libpng ] [ root:~ ]# vi /etc/ld.so.conf # add this line /usr/local/lib [ root:~ ]# mkdir download [ root:~ ]# cd download/ [ root:downlad ]# wget http://sourceforge.net/projects/libpng/files/01-libpng-master/1.2.40rc01/libpng-1.2.40rc01.tar.bz2/download [ root:downlad ]# tar -xjf libpng-1.2.40rc01.tar.bz2 [ root:downlad ]# cd libpng-1.2.39 [ root:libpng-1.2.39 ]# ./configure [ root:libpng-1.2.39 ]# make && make install [ compile and install libjpeg ] [ root:downlad ]# wget http://sourceforge.net/projects/libjpeg/files/libjpeg/6b/jpegsrc.v6b.tar.gz/download [ root:downlad ]# tar -xzf jpegsrc.v6b.tar.gz [ root:downlad ]# cd jpeg-6b/ [ root:jpeg-6b ]# ./configure --prefix=/usr/local --enable-shared --enable-static [ root:jpeg-6b ]...