VPS侦探论坛

 找回密码
 注册
查看: 3635|回复: 8

安装imagemagick失败

[复制链接]
发表于 2019-1-31 09:05:00 | 显示全部楼层 |阅读模式

默认的一键安装,没有改动任何文件,用命令./addons.sh install imagemagick的时候,显示安装失败提示信息:
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking for pkg-config... /bin/pkg-config
checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/imagemagick/bin/MagickWand-config... Doesn't exist
checking Testing /usr/local/imagemagick/bin/Wand-config... Doesn't exist
checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
checking Testing /usr/local/bin/Wand-config... Doesn't exist
checking Testing /usr/bin/MagickWand-config... Doesn't exist
checking Testing /usr/bin/Wand-config... Doesn't exist
checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
checking Testing /usr/sbin/bin/Wand-config... Doesn't exist
checking Testing /opt/bin/MagickWand-config... Doesn't exist
checking Testing /opt/bin/Wand-config... Doesn't exist
checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
checking Testing /opt/local/bin/Wand-config... Doesn't exist
configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
make: *** No targets specified and no makefile found.  Stop.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
imagick install failed!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-1-31 11:16:57 | 显示全部楼层


前面imagemagick安装时应该是没安装成功
你贴出的是imagick的安装报错信息
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-1-31 12:19:31 | 显示全部楼层

回复 2# 的帖子


不知道为什么,试过好几次,都是不成功
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-1-31 21:13:11 | 显示全部楼层

回复 3# 的帖子




往前翻翻查看具体报错原因或者  ./addons.sh install imagemagick  2>&1 | tee /root/imagemagick-install.log 记录下完整安装错误信息
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-2-1 08:30:24 | 显示全部楼层

回复 4# 的帖子


Install documentation:                        yes

  Delegate Library Configuration:
  BZLIB             --with-bzlib=yes                yes
  Autotrace         --with-autotrace=no                no
  DJVU              --with-djvu=yes                no
  DPS               --with-dps=yes                no
  FFTW              --with-fftw=yes                no
  FLIF              --with-flif=yes                no
  FlashPIX          --with-fpx=yes                no
  FontConfig        --with-fontconfig=yes        yes
  FreeType          --with-freetype=yes                yes
  Ghostscript lib   --with-gslib=no                no
  Graphviz          --with-gvc=yes                no
  HEIC              --with-heic=yes              no
  JBIG              --with-jbig=yes                no
  JPEG v1           --with-jpeg=yes                yes
  LCMS              --with-lcms=yes                no
  LQR               --with-lqr=yes                no
  LTDL              --with-ltdl=yes                no
  LZMA              --with-lzma=yes                yes
  Magick++          --with-magick-plus-plus=yes        yes
  OpenEXR           --with-openexr=yes                no
  OpenJP2           --with-openjp2=yes                no
  PANGO             --with-pango=yes                no
  PERL              --with-perl=no                no
  PNG               --with-png=yes                yes
  RAQM              --with-raqm=yes                no
  RAW               --with-raw=yes    no
  RSVG              --with-rsvg=no                no
  TIFF              --with-tiff=yes                no
  WEBP              --with-webp=yes                yes
  WMF               --with-wmf=yes                no
  X11               --with-x=                        yes
  XML               --with-xml=yes                yes
  ZLIB              --with-zlib=yes                yes

  Delegate Program Configuration:
  GhostPCL          None                                pcl6 (unknown)
  GhostXPS          None                                gxps (unknown)
  Ghostscript       None                                gs (unknown)

  Font Configuration:
  Apple fonts       --with-apple-font-dir=default       
  Dejavu fonts      --with-dejavu-font-dir=default        none
  Ghostscript fonts --with-gs-font-dir=default        none
  URW-base35 fonts  --with-urw-base35-font-dir=default  none
  Windows fonts     --with-windows-font-dir=default        none

  X11 Configuration:
        X_CFLAGS        =
        X_PRE_LIBS      =
        X_LIBS          =
        X_EXTRA_LIBS    =

  Options used to compile and link:
    PREFIX          = /usr/local/imagemagick
    EXEC-PREFIX     = /usr/local/imagemagick
    VERSION         = 7.0.7
    CC              = gcc -std=gnu99 -std=gnu99
    CFLAGS          = -I/usr/include/libxml2     -I/usr/include/libpng15     -I/usr/include/freetype2 -I/usr/include/libpng15   -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng15      -fopenmp -g -O2 -Wall -mtune=core2 -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
    CPPFLAGS        =   -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
    PCFLAGS         =
    DEFS            = -DHAVE_CONFIG_H
    LDFLAGS         =  
    LIBS            =
    CXX             = g++
    CXXFLAGS        = -g -O2 -pthread
    FEATURES        = DPC HDRI Cipher OpenMP
    DELEGATES       = bzlib mpeg fontconfig freetype jng jpeg lzma png webp x xml zlib
==============================================================================

make  all-am
make[1]: Entering directory `/data/lnmp1.5/src/ImageMagick-7.0.7-35'
  CC       MagickCore/MagickCore_libMagickCore_7_Q16HDRI_la-accelerate.lo
  CC       MagickCore/MagickCore_libMagickCore_7_Q16HDRI_la-animate.lo
  CC       MagickCore/MagickCore_libMagickCore_7_Q16HDRI_la-annotate.lo
In file included from MagickCore/annotate.c:91:0:
MagickCore/annotate.c: In function ?.enderFreetype?.
/usr/include/freetype2/freetype/freetype.h:801:37: error: ?.T_ENCODING_PRC?.undeclared (first use in this function)
#define ft_encoding_gb2312          FT_ENCODING_PRC
                                     ^
MagickCore/annotate.c:1463:23: note: in expansion of macro ?.t_encoding_gb231?
         encoding_type=ft_encoding_gb2312;
                       ^
/usr/include/freetype2/freetype/freetype.h:801:37: note: each undeclared identifier is reported only once for each function it appears in
#define ft_encoding_gb2312          FT_ENCODING_PRC
                                     ^
MagickCore/annotate.c:1463:23: note: in expansion of macro ?.t_encoding_gb231?
         encoding_type=ft_encoding_gb2312;
                       ^
make[1]: *** [MagickCore/MagickCore_libMagickCore_7_Q16HDRI_la-annotate.lo] Error 1
make[1]: Leaving directory `/data/lnmp1.5/src/ImageMagick-7.0.7-35'
make: *** [all] Error 2
make  all-am
make[1]: Entering directory `/data/lnmp1.5/src/ImageMagick-7.0.7-35'
  CC       MagickCore/MagickCore_libMagickCore_7_Q16HDRI_la-annotate.lo
In file included from MagickCore/annotate.c:91:0:
MagickCore/annotate.c: In function ?.enderFreetype?.
/usr/include/freetype2/freetype/freetype.h:801:37: error: ?.T_ENCODING_PRC?.undeclared (first use in this function)
#define ft_encoding_gb2312          FT_ENCODING_PRC
                                     ^
MagickCore/annotate.c:1463:23: note: in expansion of macro ?.t_encoding_gb231?
         encoding_type=ft_encoding_gb2312;
                       ^
/usr/include/freetype2/freetype/freetype.h:801:37: note: each undeclared identifier is reported only once for each function it appears in
#define ft_encoding_gb2312          FT_ENCODING_PRC
                                     ^
MagickCore/annotate.c:1463:23: note: in expansion of macro ?.t_encoding_gb231?
         encoding_type=ft_encoding_gb2312;
                       ^
make[1]: *** [MagickCore/MagickCore_libMagickCore_7_Q16HDRI_la-annotate.lo] Error 1
make[1]: Leaving directory `/data/lnmp1.5/src/ImageMagick-7.0.7-35'
make: *** [all] Error 2
make  install-am
make[1]: Entering directory `/data/lnmp1.5/src/ImageMagick-7.0.7-35'
  CC       MagickCore/MagickCore_libMagickCore_7_Q16HDRI_la-annotate.lo
In file included from MagickCore/annotate.c:91:0:
MagickCore/annotate.c: In function ?.enderFreetype?.
/usr/include/freetype2/freetype/freetype.h:801:37: error: ?.T_ENCODING_PRC?.undeclared (first use in this function)
#define ft_encoding_gb2312          FT_ENCODING_PRC
                                     ^
MagickCore/annotate.c:1463:23: note: in expansion of macro ?.t_encoding_gb231?
         encoding_type=ft_encoding_gb2312;
                       ^
/usr/include/freetype2/freetype/freetype.h:801:37: note: each undeclared identifier is reported only once for each function it appears in
#define ft_encoding_gb2312          FT_ENCODING_PRC
                                     ^
MagickCore/annotate.c:1463:23: note: in expansion of macro ?.t_encoding_gb231?
         encoding_type=ft_encoding_gb2312;
                       ^
make[1]: *** [MagickCore/MagickCore_libMagickCore_7_Q16HDRI_la-annotate.lo] Error 1
make[1]: Leaving directory `/data/lnmp1.5/src/ImageMagick-7.0.7-35'
make: *** [install] Error 2
imagick-3.4.3.tgz [found]
Uncompress imagick-3.4.3.tgz...
cd imagick-3.4.3...
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
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 PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking for pkg-config... /bin/pkg-config
checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/imagemagick/bin/MagickWand-config... Doesn't exist
checking Testing /usr/local/imagemagick/bin/Wand-config... Doesn't exist
checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
checking Testing /usr/local/bin/Wand-config... Doesn't exist
checking Testing /usr/bin/MagickWand-config... Doesn't exist
checking Testing /usr/bin/Wand-config... Doesn't exist
checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
checking Testing /usr/sbin/bin/Wand-config... Doesn't exist
checking Testing /opt/bin/MagickWand-config... Doesn't exist
checking Testing /opt/bin/Wand-config... Doesn't exist
checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
checking Testing /opt/local/bin/Wand-config... Doesn't exist
configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
make: *** No targets specified and no makefile found.  Stop.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
imagick install failed!

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2019-2-1 08:31:08 | 显示全部楼层

回复 4# 的帖子


军哥帮忙看下,是不是这些提示内容?
发表于 2019-2-1 10:59:17 | 显示全部楼层

什么系统及版本?
修改include/version.sh 将imagemagick的版本替换为 7.0.8-14 后重新安装试试
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-2-7 08:09:10 | 显示全部楼层

回复 7# 的帖子


系统是centos7.6,改过版本,重启lnmp,安装,还是不行,最新版本号也试过了,不行
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-2-8 19:43:10 | 显示全部楼层

回复 8# 的帖子


不清楚原因,也没法复原出你的错误

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-3 15:59 , Processed in 0.028570 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表