VPS侦探论坛

 找回密码
 注册
查看: 6263|回复: 7

install imagemagick Call to undefined method Imagick::roundCorners()

[复制链接]
发表于 2017-9-25 18:19:24 | 显示全部楼层 |阅读模式

使用 imagemagick   的 圆角  Imagick::roundCorners()  ; 结果报错了 没有 Google 发现

https://stackoverflow.com/questions/42093886/call-to-undefined-method-imagickroundcorners-on-macosx

是这样的问题,

但还是没有找到解决方案, 有大佬知道怎么解决吗
没有其他办法了 只能降级了

下载 地址 : http://www.imagemagick.org/download/

找到了 6.9.9-15


修改 version.sh

ImageMagick_Ver='ImageMagick-6.9.9-15'


执行 : ./addons.sh install imagemagick


最后报错如下:

Libraries have been installed in:

/root/lnmp1.4/src/imagick-3.4.3/modules

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.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:
/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/
Installing header files:
/usr/local/php/include/php/

imagick install failed!

[ 本帖最后由 zan 于 2017-9-25 21:34 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-9-25 18:36:13 | 显示全部楼层


可能imagemagick或imgaick没有正常安装上吧
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-9-25 20:38:14 | 显示全部楼层

回复 2# 的帖子


老大 其他方法都可以用 就是这个 圆角不可以用 上面的链接 外国佬说 php7 编译 忽略了  roundCorners 所以 就不会有 roundCorners 这个方法了啊
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-9-25 20:47:00 | 显示全部楼层

回复 2# 的帖子




ImageMagick 希望降到 6.9.6-2  脚步改了 会报错 找不到这个 下载地址 改怎么办? 要手动下载吗
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-9-26 11:06:30 | 显示全部楼层

自己指定版本,需要自行下载ImageMagick 的tar.bz2格式源码至安装包 src目录下
同时因为是要重置还需要修改 include/imageMagick.sh 文件,将里面的
if [ -s /usr/local/imagemagick/bin/convert ]; then
        echo "ImageMagick already exists."
    else
和rm -rf ${cur_dir}/src/${ImageMagick_Ver} 后的fi 删掉
后再重新安装

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

 楼主| 发表于 2017-9-26 13:44:02 | 显示全部楼层

回复 5# 的帖子


老大 OK 了 谢谢大佬

[ 本帖最后由 zan 于 2017-9-26 13:54 编辑 ]
发表于 2017-9-29 18:43:14 | 显示全部楼层

回复 5# 的帖子


军哥,重新安装也是 ./addons.sh install imagemagick 这样吗?
好像仍然安装了7.0版本,求教
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-9-30 12:16:46 | 显示全部楼层

回复 7# 的帖子


5楼已经有具体修改方法,参考修改肯定不会有问题

依然不行可以联系QQ/旺旺付费进行安装。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-25 07:14 , Processed in 0.027121 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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