: This article describes how to install the gd library without the php source code. if you are interested in the PHP Tutorial, refer to it. General source code installation and addition of the GD library does not support jpeg images, only supports the following formats
GD Support enabled
GD Version bundled (2.0.34 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
LibPNG Version 1.2.49
WBMP Support enabled
XBM Support enabled
Next we will add support for jpeg files.
Wget http://www.ijg.org/files/jpegsrc.v8b.tar.gz
Tar-zxvf restart src.v8b.tar.gz
Cd jpeg-8b
./Configure -- prefix =/usr/local/jpeg -- enable-shared -- enable-static
Make & make install
Go to the gd directory under ext under the php source code directory.
Go to the gd directory and run the following command:/usr/local/php/is the php installation path on your server. This is my path.
/Usr/local/php/bin/phpize
./Configure -- with-php-c/local/php/bin/php-config -- with-jpeg-dir =/usr/local/jpeg/
Make & make install
After these systems are executed, you will be prompted to generate the directory gd. so.
Add gd. so under php. ini, restart php, restart the application server, and then OK.
Some machines may not work yet.
Yum install libjpeg-devel freetype-devel libpng-devel
Make clean and try again./configure
Make & make install
Check phpinfo. OK.
GD Support enabled
GD Version 2.0
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
LibJPEG Version unknown
PNG Support enabled
LibPNG Version 1.2.10
WBMP Support enabled
GD Support enabled
GD Version bundled (2.0.34 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
LibJPEG Version 8
PNG Support enabled
LibPNG Version 1.2.49
WBMP Support enabled
XBM Support enabled
Directive Local Value Master Value
Gd.jpeg _ ignore_warning 0 0
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
The above describes the installation of the gd library without the php source code, including the content, and hope to be helpful to friends who are interested in the PHP Tutorial.