简体   繁体   English

如何在 Windows 7 上安装 ImageMagick (2)

[英]How to install ImageMagick on Windows 7 (2)

Hopefully, despite similar question titles, this isn't a duplicate issue.希望尽管问题标题相似,但这不是重复的问题。

I've installed ImageMagick-6.7.5-6-Q16-windows-dll.exe .我已经安装了ImageMagick-6.7.5-6-Q16-windows-dll.exe

I have php_imagick_dyn-Q16.dll renamed to php_imagick.dll in PHP's ext directory.我在 PHP 的ext目录php_imagick_dyn-Q16.dll重命名为php_imagick.dll

I have extension=php_imagick.dll in my php.ini .我的php.iniextension=php_imagick.dll

I try to run a basic test: php -r "var_dump(class_exists('Imagick'));"我尝试运行一个基本测试: php -r "var_dump(class_exists('Imagick'));" . .

I get this error:我收到此错误:

PHP Startup: imagick: Unable to initialise module PHP 启动:imagick:无法初始化模块
Module compiled with module API=20060613使用模块 API=20060613 编译的模块
PHP compiled with module API=20090626使用模块 API=20090626 编译的 PHP
These options must match.这些选项必须匹配。


CLI has stopped working. CLI 已停止工作。
Windows can check online for a solution to the problem. Windows 可以在线检查问题的解决方案。
> Check online for a solution and close the program > 在线查看解决方案并关闭程序
> Close the program > 关闭程序

What have I done wrong?我做错了什么?

  1. First install : Link第一次安装:链接

  2. Download : http://www.sk89q.com/2010/03/vc6-windows-binaries-for-imagick-2-3-0/下载: http : //www.sk89q.com/2010/03/vc6-windows-binaries-for-imagick-2-3-0/

  3. Choose the TS one选择TS之一

  4. Open your php.ini file打开你的php.ini文件

  5. Add this line :添加这一行:

    extension=php_imagick.dll扩展名=php_imagick.dll

  6. Restart your apache server重启你的 apache 服务器

    open php_info()打开 php_info()

Now your imagick lib is ready to use.现在您的 imagick 库可以使用了。

This works for me.这对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM