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

一般源码安装添加的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
--2015-05-28 21:06:07--  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|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 965125 (943K) [application/x-gzip]
Saving to: ‘jpegsrc.v8b.tar.gz’

100%[======================================>] 965,125     11.8KB/s   in 90s    

2015-05-28 21:07:41 (10.4 KB/s) - ‘jpegsrc.v8b.tar.gz’ saved [965125/965125]

[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.1
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.1
jpeg-8b/djpeg.c
jpeg-8b/install.txt
jpeg-8b/aclocal.m4
jpeg-8b/usage.txt
jpeg-8b/jcmarker.c
jpeg-8b/ansi2knr.1
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.1
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.1
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.1
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... 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: executing depfiles commands
config.status: executing libtool commands
[root@localhost jpeg-8b]# make && make install
make  all-am
make[1]: 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[1]: 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(1) and ld.so(8) 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 644 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 644 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 644 cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 ‘/usr/local/jpeg/share/man/man1‘
make[1]: Leaving directory `/jpeg-8b‘
[[email protected] jpeg-8b]# cd /usr/local/php/bin/phpize
bash: cd: /usr/local/php/bin/phpize: Not a directory
[[email protected] 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

[[email protected] 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
[[email protected] jpeg-8b]#
[[email protected] jpeg-8b]# make && make install
make  all-am
make[1]: Entering directory `/jpeg-8b‘
make[1]: 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.2 /usr/local/lib/libjpeg.so.8.0.2
libtool: install: (cd /usr/local/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/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/lib/libjpeg.la
libtool: install: /usr/bin/install -c .libs/libjpeg.a /usr/local/lib/libjpeg.a
libtool: install: chmod 644 /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]# 
时间: 2024-10-10 19:38:58

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

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

Apache所依赖的库,封装了各个系统相关的API等.虽然都是Apache开发的,但是现在最新版本的Apache和APR源码是分开的.要编Apache就必须使用APR. /etc/ld.so.conf 此文件记录了编译时使用的动态库的路径,也就是加载so库的路径. 默认情况下,编译器只会使用/lib和/usr/lib这两个目录下的库文件,而通常通过源码包进行安装时,如果不指定--prefix会将库安装在 /usr/local目录下,而又没有在文件/etc/ld.so.conf中添加/usr/lo

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

本文首发于烂泥行天下. apache对php的支持是通过apache的mod_php5模块来支持的,这点与nginx不同.nginx是通过第三方的fastcgi处理器才可以对php进行解析,有关nginx与php集成,请看<烂泥:php5.6源码安装及php-fpm配置与nginx集成>. 如果源码编译安装php的话,需要在编译时指定--with-apxs2=/usr/local/apache2/bin/apxs表示告诉编译器通过apache的mod_php5模块来提供对php的解析. 同时p

Linux下源码安装CodeBlocks

Linux下源码安装CodeBlocks qianghaohao(CodingNutter) 一. 安装平台说明: CentOs6.4-i686  gcc-4.4.7 二. 下载最新源码: http://www.codeblocks.org/downloads 在此安装的是最新版:Code::Blocks 16.01 三. 阅读官方安装说明文档: http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on

nginx的源码安装部署

Nginx安装:源码安装 添加普通用户账号来运行nginx:useradd nginx -M -r -s /sbin/nologin 安装依赖包yum install -y gcc pcre-devel openssl-devel 解压并安装Nginx:wget http://nginx.org/download/nginx-1.10.3.tar.gztar xvf nginx-1.10.3.tar.gz cd nginx-1.10.3./configure --user=nginx \--gr

linux 源码安装apache2.4并添加服务

源码安装apache,路径 /usr/local/httpd24 1.安装apr yum -y install epel-release  wget -c http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz tar xf apr-1.5.2.tar.gz cd apr-1.5.2  ./configure --prefix=/usr/local/apr;echo $? make && make install;echo $?  cd ..

源码安装zabbix(lnmp+zabbix)

源码安装zabbix 实验环境: [[email protected] ~]# cat /etc/issue CentOS release 6.5 (Final) Kernel \r on an \m 环境要求: 需要准备好实验环境,配置好主机名称 , 网络源(这里我使用的是163网络源),查看并调整好自己的时区以及时间,关闭防火墙iptables   selinux. 安装nginx 需要软件有: nginx-1.8.0.tar.gz  pcre-8.34.tar.gz 安装步骤: 首选安装:

源码安装LAMP环境+yii2框架

当有些新增的软件版本出现,而你想要进行尝试使用,但是在本地用yum安装却不能满足你的需求时, 那么朋友,你需要和我一样用源码安装的形式来达成你的目的. 因为开发的同事想要一个Apache 2.4.25 + Mysql 5.7.17 + php7.1.5 + yii2-basic的环境来做活动. 为了满足应用需求,现在我们就开始着手做吧! 一.安装Apache 本来在本地,只要你能联网,就能够用yum轻轻松松安装上Apache,而且安装的版本会比官网上 下载的最新源码包还要新. 但我发现yum安装

CentOS 源码安装 zabbix3.4

环境: CentOS: 6.9 IP:192.168.1.92 JDK:1.7.0.45 ngingx: 1.13.6 mysql:  5.7.21-linux-glibc2.5-x86_64 php:    5.6.31 zabbix: 3.4.2 源码包存放路径:/data/tools/ 安装路径:      /usr/local/ 1.关闭防火墙和selinux 1.1. 关闭iptables ]# service iptables stop iptables: Setting chain

LANP源码安装

今日学习记录:LNMP源码安装 安装编译工具及库文件yum install -y apr autoconf automake bison bzip2 bzip2 compat cpp curl curl-devel fontconfig fontconfig-devel freetype freetype freetype-devel gcc gcc-c++ gd gettext gettext-devel glibc kernel kernel-headers keyutils keyutil