一般源码安装添加的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. img加载不出来,给个默认图片。

    忽然发现,jq里也有坑,很多东西莫名其妙的被废弃了……所以,只能用原生js来做了: $('img').each(function() { if (!this.complete || typeof th ...

  2. 开源地图编辑器 MarbleMap,支持Cocos2d-x坐标系

    由9秒社团开发并维护的MarbleMap是支持Cocos2d-x坐标系和as3坐标系的地图编辑器,功能完善高效.这里详细介绍一下它的使用方法! 一.功能简述 由9秒社团开发并维护的MarbleMap是 ...

  3. Spiral Matrix(LintCode)

    Spiral Matrix Given a matrix of m x n elements (m rows, n columns), return all elements of the matri ...

  4. 洛谷——P2009 跑步

    P2009 跑步 题目背景 跑步是一项有意思的运动,尤其是可以开发人的脑筋.常神牛很喜欢跑步. 题目描述 常神牛跑步的场地是一个多边形(边数≤20,每个顶点用英文大写字母表示),并且在这个多边形内部, ...

  5. SCU 4444 Travel (补图最短路)

    Travel The country frog lives in has \(n\) towns which are conveniently numbered by \(1, 2, \dots, n ...

  6. Python lambda介绍(转)

    在学习python的过程中,lambda的语法时常会使人感到困惑,lambda是什么,为什么要使用lambda,是不是必须使用lambda? 下面就上面的问题进行一下解答. 1.lambda是什么? ...

  7. 【BZOJ 3262】 3262: 陌上花开 (CDQ分治)

    3262: 陌上花开 Description 有n朵花,每朵花有三个属性:花形(s).颜色(c).气味(m),又三个整数表示.现要对每朵花评级,一朵花的级别是它拥有的美丽能超过的花的数量.定义一朵花A ...

  8. 【BZOJ 2124】【CodeVS 1283】等差子序列

    http://www.lydsy.com/JudgeOnline/problem.php?id=2124 http://codevs.cn/problem/1283/ 重点是把判断是否存在3个数组成等 ...

  9. 【动态规划】POJ3280- Cheapest Palindrome

    [题目大意] 给出一个字符串,可以删除或添加一些字符,它们各自会消耗价值.问最少消耗多少价值,可以使得字符串变成回文的. [思路] 事实上删除或添加字符的价值只需要保持较小的那一个.假设当前要将(j, ...

  10. git远程仓库创建及权限管理(一)单个项目

    最近接手公司git权限管理,既然负责此事个人觉得应该深入学习下,不仅为当前工作也为进一步发展.网上查找了一番,找到了完整的教程,所以这里不再一步一步描述,具体链接已给出,本文只对操作过程中遇到的问题的 ...