一般源码安装添加的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
---- ::-- 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 格式的图片的的更多相关文章
- apache源码安装必须依赖的库apr----/etc/ld.so.conf 文件介绍
Apache所依赖的库,封装了各个系统相关的API等.虽然都是Apache开发的,但是现在最新版本的Apache和APR源码是分开的.要编Apache就必须使用APR. /etc/ld.so.conf ...
- Call to undefined function imagecreatefromjpeg() 让GD支持JPEG格式的图片扩展
安装扩展支持jpeg格式: 第一步:首先下载文件: 版本v8: wget http://www.ijg.org/files/jpegsrc.v8b.tar.gz 版本v9: wget http://w ...
- 烂泥:php5.6源码安装与apache集成
本文由秀依林枫提供友情赞助,首发于烂泥行天下. apache对php的支持是通过apache的mod_php5模块来支持的,这点与nginx不同.nginx是通过第三方的fastcgi处理器才可以对p ...
- php+gd库的源码安装
php+gd库的源码安装 PHP+GD安装 一.下载软件 gd-2.0.35.tar.gz http://www.boutell.com/gd/ jpegsrc.v6b. ...
- [原创] zabbix学习之旅一:源码安装
zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案.zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系统管理员快速定位/解决存 ...
- LNAMP服务器环境(源码安装)
在安装前先看下它们安装时所需要的依赖库:http://www.cnblogs.com/fps2tao/p/7699448.html 1.nginx源码安装 下载:http://nginx.org/en ...
- lnmp之阿里云源码安装mysql5.7.17
mysql5.7.17一直号称世界上最好的mysql 那么就在阿里云主机linux安装它(采用的源码安装mysql5.7.17) 我在阿里云主机上安装它 连接阿里云主机 进入,跟我们自己装的虚拟机一毛 ...
- 源码安装LNMP与搭建Zabbix
系统环境:CentOS release 6.5 (Final) 搭建Zabbix 3.0对PHP环境要求>= 5.4 一.下载NMP的软件包: N:wget http://nginx.org/d ...
- CentOS 6.3下源码安装LAMP(Linux+Apache+Mysql+Php)环境【转载】
本文转载自 园友David_Tang的博客,如有侵权请联系本人及时删除,原文地址: http://www.cnblogs.com/mchina/archive/2012/11/28/2778779.h ...
随机推荐
- js正则表达大合集【转载自:http://caibaojian.com】
[注明原文链接吧]:http://caibaojian.com 1 用户名正则 //用户名正则,4到16位(字母,数字,下划线,减号) var uPattern = /^[a-zA-Z0-9_-]{4 ...
- es6扩展运算符及rest运算符总结
扩展运算符(...) 1.如果一个函数的参数个数不确定,可以用其代替 eg:求若干个数的和 2.改数组的引用为复制一份内存 此刻数组a也发生了变化,因为数组b是a的一个引用 此刻相当于复制了一份a 3 ...
- 一款你不容错过的Laravel后台管理扩展包 —— Voyager
http://laravelacademy.org/post/6401.html Posted on 2016年11月1日 by 学院君 1.简介 Voyager是一个你不容错过的Laravel后 ...
- Js文件中调用其它Js函数的方法
在项目开发过程中,也许你会遇这样的情况.在某一Js文件中需要完成某一功能,但这一功能的大部分代码在另外一个Js文件中已经完成了,自己只需要调用这个方法再加上几句代码就可以实现所需的功能.我们知道,在h ...
- mysql 如何给root用户设置密码
用root 进入mysql后mysql>set password =password('你的密码');mysql>flush privileges;
- 洛谷——P1123 取数游戏
P1123 取数游戏 题目描述 一个N×M的由非负整数构成的数字矩阵,你需要在其中取出若干个数字,使得取出的任意两个数字不相邻(若一个数字在另外一个数字相邻8个格子中的一个即认为这两个数字相邻),求取 ...
- Flask实战第61天:帖子板块过滤显示
先在显示的帖子是所有版块的帖子,这节我们来完成点击某个版块,则显示此版块的帖子 要完成这个功能,我们需要在前端传递板块的id到后台, 编辑front_index.html 编辑首页视图 编辑板块选中样 ...
- Xamarin Visual Studio不识别JDK路径
Xamarin Visual Studio不识别JDK路径 错误信息:Cannot find adb.exe in specified SDK path.出现这种情况,是因为Visual Studio ...
- dijkstra算法模板及其用法
Dijkstra算法 1.定义概览 Dijkstra(迪杰斯特拉)算法是典型的单源最短路径算法,用于计算一个节点到其他所有节点的最短路径.主要特点是以起始点为中心向外层层扩展,直到扩展到终点为止.Di ...
- 【贪心】【堆】bzoj2590 [Usaco2012 Feb]Cow Coupons
每个物品有属性a,b 考虑在仅仅用光优惠券时的最优方案. 显然是按照b排序,取前K个. 但是我们还要尽可能去取剩余的. 假设朴素地取剩余的话,应该把剩余的对a排序,然后尽量去取. 但是有可能对其用优惠 ...