码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-05-29 00:35:50      阅读:268      评论:0      收藏:0      [点我收藏+]

标签:

一般源码安装添加的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
[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[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]# 

 

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

标签:

原文地址:http://www.cnblogs.com/endv/p/4537278.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!