一般源码安装添加的GD库 是不支持 jpeg 格式的图片的,只支持如下格式

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 
 下面我们来 添加 jpeg 格式文件的支持 
wget http://www.ijg.org/files/jpegsrc.v8b.tar.gz

tar -zxvf  jpegsrc.v8b.tar.gz 
cd jpeg-8b

./configure --prefix=/usr/local/jpeg --enable-shared --enable-static 
make && make install

下面进入到 php 源码目录下 的 ext 下的 gd目录

进入gd 目录后执行  注意下面的 /usr/local/php/  是你服务器 php的安装路径。我的是 这个路径就写成这样了

/usr/local/php/bin/phpize

./configure --with-php-config=/usr/local/php/bin/php-config --with-jpeg-dir=/usr/local/jpeg/

make && make install

执行完这些 系统就会提示你  gd.so 生成目录

在php.ini下 添加 gd.so 后

extention = gd.so

重启php 重启 应用服务器后就OK了

/usr/local/php/sbin/php-fpm restart

有些机器可能还不行,这样解决

yum install libjpeg-devel freetype-devel libpng-devel
make clean后重新./configure
make&make install

查看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

[root@localhost shop]# cd /
[root@localhost /]# ./configure –with-jpeg-dir=/usr/lib –with-gd
bash: ./configure: No such file or directory
[root@localhost /]# wget http://www.ijg.org/files/jpegsrc.v8b.tar.gz
---- ::-- http://www.ijg.org/files/jpegsrc.v8b.tar.gz
Resolving www.ijg.org (www.ijg.org)... 96.127.180.98
Connecting to www.ijg.org (www.ijg.org)|96.127.180.98|:... connected.
HTTP request sent, awaiting response... OK
Length: (943K) [application/x-gzip]
Saving to: ‘jpegsrc.v8b.tar.gz’ %[======================================>] , .8KB/s in 90s -- :: (10.4 KB/s) - ‘jpegsrc.v8b.tar.gz’ saved [/] [root@localhost /]# tar -zxvf jpegsrc.v8b.tar.gz
jpeg-8b/
jpeg-8b/wrppm.c
jpeg-8b/wrrle.c
jpeg-8b/maketdsp.vc6
jpeg-8b/jdinput.c
jpeg-8b/testimg.bmp
jpeg-8b/testimg.jpg
jpeg-8b/testimg.ppm
jpeg-8b/rdjpgcom.
jpeg-8b/rdjpgcom.c
jpeg-8b/makejsln.v10
jpeg-8b/jccoefct.c
jpeg-8b/jcmainct.c
jpeg-8b/coderules.txt
jpeg-8b/example.c
jpeg-8b/jcapimin.c
jpeg-8b/depcomp
jpeg-8b/jcapistd.c
jpeg-8b/jctrans.c
jpeg-8b/jconfig.dj
jpeg-8b/jconfig.st
jpeg-8b/jconfig.vc
jpeg-8b/maketmak.vc6
jpeg-8b/rdbmp.c
jpeg-8b/rdgif.c
jpeg-8b/transupp.c
jpeg-8b/transupp.h
jpeg-8b/jdatadst.c
jpeg-8b/rdppm.c
jpeg-8b/makejfil.v10
jpeg-8b/rdrle.c
jpeg-8b/jcdctmgr.c
jpeg-8b/rdtarga.c
jpeg-8b/jdatasrc.c
jpeg-8b/djpeg.
jpeg-8b/djpeg.c
jpeg-8b/install.txt
jpeg-8b/aclocal.m4
jpeg-8b/usage.txt
jpeg-8b/jcmarker.c
jpeg-8b/ansi2knr.
jpeg-8b/ansi2knr.c
jpeg-8b/jdcolor.c
jpeg-8b/maketfil.v10
jpeg-8b/makefile.bcc
jpeg-8b/makefile.mc6
jpeg-8b/makefile.mms
jpeg-8b/makefile.sas
jpeg-8b/makefile.wat
jpeg-8b/makefile.vms
jpeg-8b/makeddep.vc6
jpeg-8b/jcmaster.c
jpeg-8b/makecvcx.v10
jpeg-8b/README
jpeg-8b/ltmain.sh
jpeg-8b/filelist.txt
jpeg-8b/makewvcx.v10
jpeg-8b/configure
jpeg-8b/makervcx.v10
jpeg-8b/jcomapi.c
jpeg-8b/jerror.c
jpeg-8b/jerror.h
jpeg-8b/jcparam.c
jpeg-8b/jconfig.manx
jpeg-8b/jcarith.c
jpeg-8b/makcjpeg.st
jpeg-8b/configure.ac
jpeg-8b/jmorecfg.h
jpeg-8b/wrjpgcom.
jpeg-8b/wrjpgcom.c
jpeg-8b/jdsample.c
jpeg-8b/jcprepct.c
jpeg-8b/makeddsp.vc6
jpeg-8b/libjpeg.map
jpeg-8b/libjpeg.txt
jpeg-8b/makejvcx.v10
jpeg-8b/config.guess
jpeg-8b/testimgp.jpg
jpeg-8b/install-sh
jpeg-8b/jinclude.h
jpeg-8b/wrtarga.c
jpeg-8b/makedmak.vc6
jpeg-8b/config.sub
jpeg-8b/missing
jpeg-8b/structure.txt
jpeg-8b/maketvcx.v10
jpeg-8b/jquant1.c
jpeg-8b/jquant2.c
jpeg-8b/jaricom.c
jpeg-8b/testprog.jpg
jpeg-8b/jdmerge.c
jpeg-8b/jmemdosa.asm
jpeg-8b/jidctflt.c
jpeg-8b/jidctfst.c
jpeg-8b/jidctint.c
jpeg-8b/makedfil.v10
jpeg-8b/Makefile.am
jpeg-8b/Makefile.in
jpeg-8b/cderror.h
jpeg-8b/jdct.h
jpeg-8b/maktjpeg.st
jpeg-8b/jccolor.c
jpeg-8b/makvms.opt
jpeg-8b/rdswitch.c
jpeg-8b/makeadsw.vc6
jpeg-8b/makecdep.vc6
jpeg-8b/jmemansi.c
jpeg-8b/makeproj.mac
jpeg-8b/jdcoefct.c
jpeg-8b/jdmainct.c
jpeg-8b/jpegint.h
jpeg-8b/jpeglib.h
jpeg-8b/makewdep.vc6
jpeg-8b/jutils.c
jpeg-8b/jdapimin.c
jpeg-8b/makerdep.vc6
jpeg-8b/jdapistd.c
jpeg-8b/makeasln.v10
jpeg-8b/jdtrans.c
jpeg-8b/jddctmgr.c
jpeg-8b/jdpostct.c
jpeg-8b/makljpeg.st
jpeg-8b/testorig.jpg
jpeg-8b/jdmarker.c
jpeg-8b/wizard.txt
jpeg-8b/jmemname.c
jpeg-8b/jdmaster.c
jpeg-8b/jmemnobs.c
jpeg-8b/makejdep.vc6
jpeg-8b/jversion.h
jpeg-8b/jconfig.bcc
jpeg-8b/jconfig.cfg
jpeg-8b/jconfig.mc6
jpeg-8b/jconfig.mac
jpeg-8b/jconfig.sas
jpeg-8b/jconfig.txt
jpeg-8b/jconfig.wat
jpeg-8b/jconfig.vms
jpeg-8b/makecdsp.vc6
jpeg-8b/jpegtran.
jpeg-8b/jpegtran.c
jpeg-8b/rdcolmap.c
jpeg-8b/jcsample.c
jpeg-8b/makedvcx.v10
jpeg-8b/jmemdos.c
jpeg-8b/jfdctflt.c
jpeg-8b/jfdctfst.c
jpeg-8b/jmemmac.c
jpeg-8b/jmemmgr.c
jpeg-8b/jfdctint.c
jpeg-8b/makewdsp.vc6
jpeg-8b/jmemsys.h
jpeg-8b/change.log
jpeg-8b/makerdsp.vc6
jpeg-8b/makecmak.vc6
jpeg-8b/maketdep.vc6
jpeg-8b/makefile.dj
jpeg-8b/makefile.vc
jpeg-8b/cdjpeg.c
jpeg-8b/cdjpeg.h
jpeg-8b/makefile.ansi
jpeg-8b/makefile.manx
jpeg-8b/makefile.unix
jpeg-8b/jchuff.c
jpeg-8b/jcinit.c
jpeg-8b/makewmak.vc6
jpeg-8b/makermak.vc6
jpeg-8b/jdarith.c
jpeg-8b/makdjpeg.st
jpeg-8b/makecfil.v10
jpeg-8b/makejdsp.vc6
jpeg-8b/makejdsw.vc6
jpeg-8b/makewfil.v10
jpeg-8b/ckconfig.c
jpeg-8b/makerfil.v10
jpeg-8b/cjpeg.
jpeg-8b/cjpeg.c
jpeg-8b/wrbmp.c
jpeg-8b/wrgif.c
jpeg-8b/jdhuff.c
jpeg-8b/makejmak.vc6
[root@localhost /]# cd jpeg-8b
[root@localhost jpeg-8b]# ./configure --prefix=/usr/local/jpeg --enable-shared --enable-static
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for function prototypes... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking if LD -Wl,--version-script works... yes
checking for function prototypes... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for string.h... (cached) yes
checking for size_t... yes
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for an ANSI C-conforming const... yes
checking for inline... __inline__
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... yes
checking to see if right shift is signed... yes
checking to see if fopen accepts b spec... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments...
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... no
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking libjpeg version number... :
configure: creating ./config.status
config.status: creating Makefile
config.status: creating jconfig.h
config.status: executing depfiles commands
config.status: executing libtool commands
[root@localhost jpeg-8b]# make && make install
make all-am
make[]: Entering directory `/jpeg-8b'
CC jaricom.lo
CC jcapimin.lo
CC jcapistd.lo
CC jcarith.lo
CC jccoefct.lo
CC jccolor.lo
CC jcdctmgr.lo
CC jchuff.lo
CC jcinit.lo
CC jcmainct.lo
CC jcmarker.lo
CC jcmaster.lo
CC jcomapi.lo
CC jcparam.lo
CC jcprepct.lo
CC jcsample.lo
CC jctrans.lo
CC jdapimin.lo
CC jdapistd.lo
CC jdarith.lo
CC jdatadst.lo
CC jdatasrc.lo
CC jdcoefct.lo
CC jdcolor.lo
CC jddctmgr.lo
CC jdhuff.lo
CC jdinput.lo
CC jdmainct.lo
CC jdmarker.lo
CC jdmaster.lo
CC jdmerge.lo
CC jdpostct.lo
CC jdsample.lo
CC jdtrans.lo
CC jerror.lo
CC jfdctflt.lo
CC jfdctfst.lo
CC jfdctint.lo
CC jidctflt.lo
CC jidctfst.lo
CC jidctint.lo
CC jquant1.lo
CC jquant2.lo
CC jutils.lo
CC jmemmgr.lo
CC jmemnobs.lo
CCLD libjpeg.la
CC cjpeg.o
CC rdppm.o
CC rdgif.o
CC rdtarga.o
CC rdrle.o
CC rdbmp.o
CC rdswitch.o
CC cdjpeg.o
CCLD cjpeg
CC djpeg.o
CC wrppm.o
CC wrgif.o
CC wrtarga.o
CC wrrle.o
CC wrbmp.o
CC rdcolmap.o
CCLD djpeg
CC jpegtran.o
CC transupp.o
CCLD jpegtran
CC rdjpgcom.o
CCLD rdjpgcom
CC wrjpgcom.o
CCLD wrjpgcom
make[1]: Leaving directory `/jpeg-8b'
make[]: Entering directory `/jpeg-8b'
test -z "/usr/local/jpeg/lib" || /usr/bin/mkdir -p "/usr/local/jpeg/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c libjpeg.la '/usr/local/jpeg/lib'
libtool: install: /usr/bin/install -c .libs/libjpeg.so.8.0.2 /usr/local/jpeg/lib/libjpeg.so.8.0.2
libtool: install: (cd /usr/local/jpeg/lib && { ln -s -f libjpeg.so.8.0.2 libjpeg.so.8 || { rm -f libjpeg.so.8 && ln -s libjpeg.so.8.0.2 libjpeg.so.8; }; })
libtool: install: (cd /usr/local/jpeg/lib && { ln -s -f libjpeg.so.8.0.2 libjpeg.so || { rm -f libjpeg.so && ln -s libjpeg.so.8.0.2 libjpeg.so; }; })
libtool: install: /usr/bin/install -c .libs/libjpeg.lai /usr/local/jpeg/lib/libjpeg.la
libtool: install: /usr/bin/install -c .libs/libjpeg.a /usr/local/jpeg/lib/libjpeg.a
libtool: install: chmod 644 /usr/local/jpeg/lib/libjpeg.a
libtool: install: ranlib /usr/local/jpeg/lib/libjpeg.a
libtool: finish: PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/root/bin:/sbin" ldconfig -n /usr/local/jpeg/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/jpeg/lib If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for
more information, such as the ld() and ld.so() manual pages.
----------------------------------------------------------------------
test -z "/usr/local/jpeg/bin" || /usr/bin/mkdir -p "/usr/local/jpeg/bin"
/bin/sh ./libtool --mode=install /usr/bin/install -c cjpeg djpeg jpegtran rdjpgcom wrjpgcom '/usr/local/jpeg/bin'
libtool: install: /usr/bin/install -c .libs/cjpeg /usr/local/jpeg/bin/cjpeg
libtool: install: /usr/bin/install -c .libs/djpeg /usr/local/jpeg/bin/djpeg
libtool: install: /usr/bin/install -c .libs/jpegtran /usr/local/jpeg/bin/jpegtran
libtool: install: /usr/bin/install -c rdjpgcom /usr/local/jpeg/bin/rdjpgcom
libtool: install: /usr/bin/install -c wrjpgcom /usr/local/jpeg/bin/wrjpgcom
/bin/sh /jpeg-8b/install-sh -d /usr/local/jpeg/include
/usr/bin/install -c -m jconfig.h /usr/local/jpeg/include/jconfig.h
test -z "/usr/local/jpeg/include" || /usr/bin/mkdir -p "/usr/local/jpeg/include"
/usr/bin/install -c -m jerror.h jmorecfg.h jpeglib.h '/usr/local/jpeg/include'
test -z "/usr/local/jpeg/share/man/man1" || /usr/bin/mkdir -p "/usr/local/jpeg/share/man/man1"
/usr/bin/install -c -m cjpeg. djpeg. jpegtran. rdjpgcom. wrjpgcom. '/usr/local/jpeg/share/man/man1'
make[]: Leaving directory `/jpeg-8b'
[root@localhost jpeg-8b]# cd /usr/local/php/bin/phpize
bash: cd: /usr/local/php/bin/phpize: Not a directory
[root@localhost jpeg-8b]# /usr/local/php/bin/phpize
Cannot find config.m4.
Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module [root@localhost jpeg-8b]# ./configure --with-php-config=/usr/local/php/bin/php-config --with-jpeg-dir=/usr/local/jpeg/
configure: WARNING: unrecognized options: --with-php-config, --with-jpeg-dir
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for function prototypes... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking if LD -Wl,--version-script works... yes
checking for function prototypes... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for string.h... (cached) yes
checking for size_t... yes
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for an ANSI C-conforming const... yes
checking for inline... __inline__
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... yes
checking to see if right shift is signed... yes
checking to see if fopen accepts b spec... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... no
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking libjpeg version number... 8:2
configure: creating ./config.status
config.status: creating Makefile
config.status: creating jconfig.h
config.status: jconfig.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --with-php-config, --with-jpeg-dir
[root@localhost jpeg-8b]#
[root@localhost jpeg-8b]# make && make install
make all-am
make[1]: Entering directory `/jpeg-8b'
make[]: Leaving directory `/jpeg-8b'
make[1]: Entering directory `/jpeg-8b'
test -z "/usr/local/lib" || /usr/bin/mkdir -p "/usr/local/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c libjpeg.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libjpeg.so.8.0. /usr/local/lib/libjpeg.so.8.0.
libtool: install: (cd /usr/local/lib && { ln -s -f libjpeg.so.8.0. libjpeg.so. || { rm -f libjpeg.so. && ln -s libjpeg.so.8.0. libjpeg.so.; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libjpeg.so.8.0. libjpeg.so || { rm -f libjpeg.so && ln -s libjpeg.so.8.0. libjpeg.so; }; })
libtool: install: /usr/bin/install -c .libs/libjpeg.lai /usr/local/lib/libjpeg.la
libtool: install: /usr/bin/install -c .libs/libjpeg.a /usr/local/lib/libjpeg.a
libtool: install: chmod /usr/local/lib/libjpeg.a
libtool: install: ranlib /usr/local/lib/libjpeg.a
libtool: install: warning: remember to run `libtool --finish /usr/local/jpeg/lib'
test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
/bin/sh ./libtool --mode=install /usr/bin/install -c cjpeg djpeg jpegtran rdjpgcom wrjpgcom '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/cjpeg /usr/local/bin/cjpeg
libtool: install: /usr/bin/install -c .libs/djpeg /usr/local/bin/djpeg
libtool: install: /usr/bin/install -c .libs/jpegtran /usr/local/bin/jpegtran
libtool: install: /usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom
libtool: install: /usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom
/bin/sh /jpeg-8b/install-sh -d /usr/local/include
/usr/bin/install -c -m 644 jconfig.h /usr/local/include/jconfig.h
test -z "/usr/local/include" || /usr/bin/mkdir -p "/usr/local/include"
/usr/bin/install -c -m 644 jerror.h jmorecfg.h jpeglib.h '/usr/local/include'
test -z "/usr/local/share/man/man1" || /usr/bin/mkdir -p "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 '/usr/local/share/man/man1'
make[1]: Leaving directory `/jpeg-8b'
[root@localhost jpeg-8b]#

一般源码安装添加的GD库 是不支持 jpeg 格式的图片的的更多相关文章

  1. apache源码安装必须依赖的库apr----/etc/ld.so.conf 文件介绍

    Apache所依赖的库,封装了各个系统相关的API等.虽然都是Apache开发的,但是现在最新版本的Apache和APR源码是分开的.要编Apache就必须使用APR. /etc/ld.so.conf ...

  2. Call to undefined function imagecreatefromjpeg() 让GD支持JPEG格式的图片扩展

    安装扩展支持jpeg格式: 第一步:首先下载文件: 版本v8: wget http://www.ijg.org/files/jpegsrc.v8b.tar.gz 版本v9: wget http://w ...

  3. 烂泥:php5.6源码安装与apache集成

    本文由秀依林枫提供友情赞助,首发于烂泥行天下. apache对php的支持是通过apache的mod_php5模块来支持的,这点与nginx不同.nginx是通过第三方的fastcgi处理器才可以对p ...

  4. php+gd库的源码安装

    php+gd库的源码安装     PHP+GD安装   一.下载软件 gd-2.0.35.tar.gz          http://www.boutell.com/gd/ jpegsrc.v6b. ...

  5. [原创] zabbix学习之旅一:源码安装

    zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案.zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系统管理员快速定位/解决存 ...

  6. LNAMP服务器环境(源码安装)

    在安装前先看下它们安装时所需要的依赖库:http://www.cnblogs.com/fps2tao/p/7699448.html 1.nginx源码安装 下载:http://nginx.org/en ...

  7. lnmp之阿里云源码安装mysql5.7.17

    mysql5.7.17一直号称世界上最好的mysql 那么就在阿里云主机linux安装它(采用的源码安装mysql5.7.17) 我在阿里云主机上安装它 连接阿里云主机 进入,跟我们自己装的虚拟机一毛 ...

  8. 源码安装LNMP与搭建Zabbix

    系统环境:CentOS release 6.5 (Final) 搭建Zabbix 3.0对PHP环境要求>= 5.4 一.下载NMP的软件包: N:wget http://nginx.org/d ...

  9. CentOS 6.3下源码安装LAMP(Linux+Apache+Mysql+Php)环境【转载】

    本文转载自 园友David_Tang的博客,如有侵权请联系本人及时删除,原文地址: http://www.cnblogs.com/mchina/archive/2012/11/28/2778779.h ...

随机推荐

  1. 7.spark Streaming 技术内幕 : 从DSteam到RDD全过程解析

    原创文章,转载请注明:转载自 听风居士博客(http://www.cnblogs.com/zhouyf/)   上篇博客讨论了Spark Streaming 程序动态生成Job的过程,并留下一个疑问: ...

  2. shell 文本加密

    第一种:[ Python 与 Bash Shell 的结合 ]这个命令会让你输入一个字符串,然后会再输出一串加密了的数字. 加密代码[照直输入]:python -c 'print reduce(lam ...

  3. Python开发基础-Day17面向对象编程介绍、类和对象

    面向对象变成介绍 面向过程编程 核心是过程(流水线式思维),过程即解决问题的步骤,面向过程的设计就好比精心设计好一条流水线,考虑周全什么时候处理什么东西.主要应用在一旦完成很少修改的地方,如linux ...

  4. luogu P1339 [USACO09OCT]热浪Heat Wave

    题目描述 The good folks in Texas are having a heatwave this summer. Their Texas Longhorn cows make for g ...

  5. bzoj 1433: [ZJOI2009]假期的宿舍

    1433: [ZJOI2009]假期的宿舍 Description Input Output Sample Input 1 3 1 1 0 0 1 0 0 1 1 1 0 0 1 0 0 Sample ...

  6. bzoj 4195: [Noi2015]程序自动分析

    4195: [Noi2015]程序自动分析 Description 在实现程序自动分析的过程中,常常需要判定一些约束条件是否能被同时满足. 考虑一个约束满足问题的简化版本:假设x1,x2,x3,…代表 ...

  7. HDU 5288 OO’s Sequence 水题

    OO's Sequence 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5288 Description OO has got a array A ...

  8. Educational Codeforces Round 9 C. The Smallest String Concatenation 排序

    C. The Smallest String Concatenation 题目连接: http://www.codeforces.com/contest/632/problem/C Descripti ...

  9. Codeforces Round #342 (Div. 2) E. Frog Fights set 模拟

    E. Frog Fights 题目连接: http://www.codeforces.com/contest/625/problem/E Description stap Bender recentl ...

  10. #Java Web累积#表格<table>中隐藏列做备用数据

    初入JW,MyEclipse,JS文件中码砖时怎么连个提示都没有. 步骤1 JSP代码中,Table多出一列,如下列代码中的 Other,其中css文件中将col00的width设置为0px; < ...