부사관계열 요청- GD library jpeg support 요청
1. 기존 gd jpeg support 안됨
[root@divweb7-1611 ~]# /usr/local/php/bin/php -r 'print_r(gd_info());'
Array
(
[GD Version] => bundled (2.1.0 compatible)
[FreeType Support] =>
[T1Lib Support] =>
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPEG Support] =>
[PNG Support] => 1
[WBMP Support] => 1
[XPM Support] =>
[XBM Support] => 1
[WebP Support] =>
[JIS-mapped Japanese Font Support] =>
)
[root@divweb7-1611 ~]#
2. PHP 재컴파일
[root@divweb7-1611 ~]# /usr/local/apache/bin/apachectl stop
[root@divweb7-1611 ~]# cd /usr/local/
[root@divweb7-1611 local]# mv php php-20170218
[root@divweb7-1611 local]# cd src
[root@divweb7-1611 src]# cd php-5.6.24
[root@divweb7-1611 src]# make clean
[root@divweb7-1611 php-5.6.24]#./configure --prefix=/usr/local/php --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --with-regex=php --with-zlib --disable-debug --enable-calendar --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --with-jpeg-dir=/usr/lib64 --with-gd --enable-mbstring
[root@divweb7-1611 php-5.6.24]#make
[root@divweb7-1611 php-5.6.24]#make test
[root@divweb7-1611 php-5.6.24]#make install
[root@divweb7-1611 php-5.6.24]# /usr/local/php/bin/php -r 'print_r(gd_info());'
Array
(
[GD Version] => bundled (2.1.0 compatible)
[FreeType Support] =>
[T1Lib Support] =>
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPEG Support] => 1
[PNG Support] => 1
[WBMP Support] => 1
[XPM Support] =>
[XBM Support] => 1
[WebP Support] =>
[JIS-mapped Japanese Font Support] =>
)
[root@divweb7-1611 php-5.6.24]#

