GraphicsMagick 安裝

GraphicsMagick 安裝

下載軟件:download:ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.18.tar.gz

#如果需要支持JPEG則需要執行這一步,建議執行。(JPEG v1           --with-jpeg=yes               yes )
yum install -y  libjpeg-devel libjpeg

安裝軟件
tar xf GraphicsMagick-1.3.18.tar.gz
cd GraphicsMagick-1.3.18
./configure --prefix=/usr/local/GraphicsMagick-1.3.18 --with-quantum-depth=16   --enable-shared --enable-static
make
make install

至此 安裝完畢,可以測試看看了。

#############################下面是 ./configure 後的返回信息,如果需要什麼在自己補充吧這裏我就需要這些就ok了。##########################

GraphicsMagick is configured as follows. Please verify that this configuration matches your expectations.

Host system type : x86_64-unknown-linux-gnu Build system type : x86_64-unknown-linux-gnu

Option            Configure option              Configured value ----------------------------------------------------------------- Shared libraries  --enable-shared=no            no Static libraries  --enable-static=yes           yes GNU ld            --with-gnu-ld=yes             yes Quantum depth     --with-quantum-depth=8        8 Modules           --with-modules=no             no

Delegate Configuration: BZLIB             --with-bzlib=yes              yes DPS               --with-dps=yes                no FlashPIX          --with-fpx=no                 no FreeType 2.0      --with-ttf=yes                yes Ghostscript       None                          gs (8.15.2) Ghostscript fonts --with-gs-font-dir=default    /usr/share/fonts/default/Type1/ Ghostscript lib   --with-gslib=no               no JBIG              --with-jbig=yes               no JPEG v1           --with-jpeg=yes               yes JPEG-2000         --with-jp2=yes                no LCMS v1           --with-lcms=yes               no LCMS v2           --with-lcms2=yes              no LZMA              --with-lzma=yes               no Magick++          --with-magick-plus-plus=yes   yes PERL              --with-perl=no                no PNG               --with-png=yes                yes (-lpng12) TIFF              --with-tiff=yes               no TRIO              --with-trio=yes               no Windows fonts     --with-windows-font-dir=      none WMF               --with-wmf=yes                no X11               --with-x=                     yes XML               --with-xml=yes                yes ZLIB              --with-zlib=yes               yes

X11 Configuration:   X_CFLAGS     =    X_PRE_LIBS   =    X_LIBS       =    X_EXTRA_LIBS =

Options used to compile and link:   CC       = gcc -std=gnu99   CFLAGS   = -fopenmp -g -O2 -Wall -pthread   CPPFLAGS = -I/usr/include/freetype2 -I/usr/include/libxml2   CXX      = g++   CXXFLAGS = -pthread   DEFS     = -DHAVE_CONFIG_H   LDFLAGS  = -L/usr/lib -L/usr/lib   LIBS     = -lfreetype -ljpeg -lpng12 -lXext -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread

#############################################################################################

測試:
gm  convert 111.jpg 222.png
gm  convert 111.jpg -resize 100x100 out.jpg

如果報錯:
1)如果configure提示“configure: error: libltdl is required for modules build”,則yum install libtool-ltdl libtool-ltdl-devel

 

 

 


 

 

 

 

 

 

 

 

 

 

 

GraphicsMagick is configured as follows. Please verify that this configuration matches your expectations.

Host system type : x86_64-unknown-linux-gnu Build system type : x86_64-unknown-linux-gnu

Option            Configure option              Configured value ----------------------------------------------------------------- Shared libraries  --enable-shared=no            no Static libraries  --enable-static=yes           yes GNU ld            --with-gnu-ld=yes             yes Quantum depth     --with-quantum-depth=8        8 Modules           --with-modules=no             no

Delegate Configuration: BZLIB             --with-bzlib=yes              yes DPS               --with-dps=yes                no FlashPIX          --with-fpx=no                 no FreeType 2.0      --with-ttf=yes                yes Ghostscript       None                          gs (8.15.2) Ghostscript fonts --with-gs-font-dir=default    /usr/share/fonts/default/Type1/ Ghostscript lib   --with-gslib=no               no JBIG              --with-jbig=yes               no JPEG v1           --with-jpeg=yes               yes JPEG-2000         --with-jp2=yes                no LCMS v1           --with-lcms=yes               no LCMS v2           --with-lcms2=yes              no LZMA              --with-lzma=yes               no Magick++          --with-magick-plus-plus=yes   yes PERL              --with-perl=no                no PNG               --with-png=yes                yes (-lpng12) TIFF              --with-tiff=yes               no TRIO              --with-trio=yes               no Windows fonts     --with-windows-font-dir=      none WMF               --with-wmf=yes                no X11               --with-x=                     yes XML               --with-xml=yes                yes ZLIB              --with-zlib=yes               yes

X11 Configuration:   X_CFLAGS     =    X_PRE_LIBS   =    X_LIBS       =    X_EXTRA_LIBS =

Options used to compile and link:   CC       = gcc -std=gnu99   CFLAGS   = -fopenmp -g -O2 -Wall -pthread   CPPFLAGS = -I/usr/include/freetype2 -I/usr/include/libxml2   CXX      = g++   CXXFLAGS = -pthread   DEFS     = -DHAVE_CONFIG_H   LDFLAGS  = -L/usr/lib -L/usr/lib   LIBS     = -lfreetype -ljpeg -lpng12 -lXext -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread

發佈了32 篇原創文章 · 獲贊 6 · 訪問量 21萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章