WampServer和Imagemagick,无法识别imagick php模块 [英] WampServer and Imagemagick, imagick php module not recogized
问题描述
我使用的是 Windows 7(64位).我下载了imagemagick-通过打开cmd并键入"convert"对其进行了测试,并以一堆能够在Windows中正常工作的东西作为响应.但是php无法识别它.
I'm using windows 7, 64 bit. I downloaded imagemagick - tested it by opening cmd and typing "convert" and it responded with a bunch of stuff that shows its working in windows. edit: but php does not recognize it.
其他相关事项:
-
使用php 5.3.13
Using php 5.3.13
Apache 2.2.22
Apache 2.2.22
添加的Windows变量:名称- MAGICK_HOME
值- c:\ imagemagick
Added windows variable: name - MAGICK_HOME
value - c:\imagemagick
在php ext文件夹中添加了适合 php_imagick.dll
的出现.(下面的粘贴错误)
Added what appears to be appropriate php_imagick.dll
into the php ext folder. (Pasting errors below)
请提供足够的信息来进行故障排除.对我来说这是一个重要问题.
Please let me know if I've supplied enough info for troubleshooting. This is an important issue for me.
事情就在这里,看来这是一个非常挑剔的系统.但是因为我正在设计一些可分发的代码,所以必须能够在本地主机上测试imagemagick功能.
The thing is here, it appears this is a very finicky system to add. But because I'm designing some distributable code, its imperative that I can test the imagemagick functionality on localhost.
来自Apache错误文件的错误:
PHP警告:PHP启动:无法加载动态库'c:/wamp/bin/php/php5.3.13/ext/php_imagick.dll'-%1不是有效的Win32应用程序.在第0行
警告:PHP启动:无法加载动态库'c:/wamp/bin/php/php5.3.13/ext/php_imagick.dll'-%1不是有效的Win32应用程序.
PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_imagick.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_imagick.dll' - %1 is not a valid Win32 application.
PHP警告:PHP启动:无法加载动态库'c:/wamp/bin/php/php5.3.13/ext/php_imagick_ts.dll'-找不到指定的模块.\ r \ n在未知"行0
警告:PHP启动:无法加载动态库'c:/wamp/bin/php/php5.3.13/ext/php_imagick_ts.dll'-找不到指定的模块.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_imagick_ts.dll' - The specified module could not be found.\r\n in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_imagick_ts.dll' - The specified module could not be found.
在 0
推荐答案
我了解到Windows 64版本可能存在错误.当然,我只是假设这可能对我不适用...这种思维导致了这个世界上许多随机死亡……
I read that there can be a bug for windows 64 version. Of course I just assumed that that probably won't apply to me...a type of thinking which is responsible for some many random deaths in this world...
所以我安装了 32位版本的Wamp ...,日子过得很好.Imagick/Imagemagick起作用
So I installed 32 bit version of Wamp...and life is good. Imagick/Imagemagick works
这篇关于WampServer和Imagemagick,无法识别imagick php模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!