在Mac OS X中使用PHP模块安装ImageMagick Brew [英] ImageMagick Brew installation with PHP Module in Mac OS X

查看:94
本文介绍了在Mac OS X中使用PHP模块安装ImageMagick Brew的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 brew install imagemagick 安装了ImageMagick。这一切都运行正常,我可以从终端/命令行运行任何ImageMagick命令。

I have installed ImageMagick using brew install imagemagick. This all worked fine and I can run any ImageMagick command from the Terminal / Command line.

现在,当我尝试在PHP中使用ImageMagick类时,我收到错误在'... 中找不到Imagick类。我想这是因为没有加载ImageMagick模块。

Now when I try to use the ImageMagick classes in PHP, I get an error Class 'Imagick' not found in .... I guess this is because the ImageMagick module is not loaded.

任何人都可以帮我把这个东西用PHP工作吗?谢谢!

Could anyone help me to get this thing working in PHP? Thanks!

其他信息:

Mac OS X版本: 10.8:Mountain Lion

PHP版:5.3.13

Additional info:
Mac OS X Version: 10.8: Mountain Lion
PHP Version: 5.3.13

推荐答案

您的ImageMagick安装还不够。你还需要Imagick软件包(可能叫做 php72-imagick 或类似的家庭酿造)。

Your ImageMagick installation is not enough. You also need the Imagick package (possibly called php72-imagick or similar for home brew).

Imagick doesn'做本身的工作,它是一个原生的PHP扩展,用于使用ImageMagick API创建和修改图像

Imagick doesn't do the work itself, it is a native PHP extension for creating and modifying images using the ImageMagick API.

尝试搜索确切的包裹的名称通过 brew search imagick

Try to search for the exact name of the package via brew search imagick.

这篇关于在Mac OS X中使用PHP模块安装ImageMagick Brew的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆