VPS侦探论坛

标题: 安装imageMagick扩展出错 [打印本页]

作者: hkcc    时间: 2020-9-25 09:11
标题: 安装imageMagick扩展出错
  1. Package epel-release-6-8.noarch already installed and latest version
  2. Nothing to do
  3. Loaded plugins: fastestmirror, refresh-packagekit, security
  4. Setting up Install Process
  5. Loading mirror speeds from cached hostfile
  6. * base: mirrors.tuna.tsinghua.edu.cn
  7. * epel: mirrors.tuna.tsinghua.edu.cn
  8. * extras: mirrors.ustc.edu.cn
  9. * updates: mirrors.ustc.edu.cn
  10. Package libwebp-devel-0.4.3-3.el6.x86_64 already installed and latest version
  11. Nothing to do
  12. ImageMagick already exists.
  13. imagick-3.4.4.tgz [found]
  14. Uncompress imagick-3.4.4.tgz...
  15. cd imagick-3.4.4...
  16. Configuring for:
  17. PHP Api Version:         20180731
  18. Zend Module Api No:      20180731
  19. Zend Extension Api No:   320180731
  20. configure.ac:3: error: Autoconf version 2.68 or higher is required
  21. configure.ac:3: the top level
  22. autom4te: /usr/bin/m4 failed with exit status: 63
  23. include/imageMagick.sh: line 52: ./configure: No such file or directory
  24. make: *** No targets specified and no makefile found.  Stop.
  25. make: *** No targets specified and no makefile found.  Stop.
  26. make: *** No rule to make target `install'.  Stop.
  27. imagick install failed!
复制代码

lnmp版本是1.7
服务器系统是centos6.8






补充内容 (2020-9-25 09:24):
php版本是  PHP Version 7.3.19
作者: hkcc    时间: 2020-9-25 10:13
我查询了一下,好像不支持7.3的版本,我用Lnmp又重新安装了php.7.2.31版本在安装就可以了,
作者: hkcc    时间: 2020-9-25 10:23
本帖最后由 hkcc 于 2020-9-25 10:27 编辑

说一下解决办法:
我目前的php是7.3安装不了,不知道是否不支持,反正我另外一台7.2版本的安装正常,现在这台是生产环境,我也不想在折腾了
1,安装多个版本的php,直接运行安装包下面的  ./install.sh mphp  选择php7.2.31,然后安装
2,安装完以后我是已经存在的网站,直接配置文件  /usr/local/nginx/conf/vhost/域名.conf ,找到大概30多行,
include enable-php-pathinfo.conf;  
修改为  include enable-php7.2.conf;
然后重新启动 lnmp restart
3,在重新安装 imageMagick 扩展
  ./addons.sh install imagemagick
这里在安装的时候会要求选择php的版本,选择刚才安装好的php7.2.31版本即可,然后就等他自动安装完成,最后 phpinfo

成功安装    imageMagick

=====================
官网安装扩展的文档地址:  https://lnmp.org/faq/addons.html

多PHP版本使用教程:   https://lnmp.org/faq/upgrade1-4.html

[attach]6293[/attach]


作者: licess    时间: 2020-9-25 10:27
centos 6.8的autoconf太低,不满足imagick的要求,你修改 include/version.sh 将  Imagick_Ver='imagick-3.4.4' 改成 Imagick_Ver='imagick-3.4.3' 试一下




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4