2012-10-24 10:06
浏览 98


PHP 5.3.8

WAMP 2.2.21

ImageMagick 6.6.2 Q16

Fatal error: Class 'Imagick' not found happens no matter what. No matter how many times I...

  1. Install/reinstall different versions of ImageMagick
  2. Try various VC9 builds of php_imagick.dll to 'wamp\bin\php\php5.3.8\ext\'
  3. Have updated my php.ini to include 'extension=php_imagick.dll'
  4. Have restarted my pc and WAMP... I can't count how many times O_o

I also get this error on WAMP startup

enter image description here

The funny thing is that php_imagick.dll shows up in my PHP extensions via the WAMP taskbar

enter image description here

but not in my localhost PHP-Loaded Extensions:

localhost Loaded Extensions

Does anyone have any ideas to why this is happening? Or any suggestions?

SOLUTION: I had to learn the hard way... WAMP 2.2 x32 NOT x64, ImageMagick 6.6.4 Q16 at the greatest.

图片转代码服务由CSDN问答提供 功能建议

PHP 5.3.8

WAMP 2.2.21 \ n

ImageMagick 6.6.2 Q16

致命错误:无论发生什么,都会发生“找不到”类。 无论我多少次...

  1. 安装/重新安装不同版本的ImageMagick
  2. 尝试各种VC9版本的php_imagick.dll 到'wamp \ bin \ php \ php5.3.8 \ ext \'
  3. 更新了我的php.ini以包含'extension = php_imagick.dll'
  4. 已重新启动 我的电脑和WAMP ...我无法计算多少次O_o

    我在WAMP启动时也遇到此错误 < p>



    但不在我的localhost PHP加载扩展中:

    有没有人对此为何有任何想法? 或任何建议?

    解决方案:我必须学习艰难的方法...... WAMP 2.2 x32 NOT x64,ImageMagick 6.6.4 Q16最大。< / p>

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dt3674 2012-10-24 10:33

    You are not loading the php_imagick.dll extension.

    Check first of all that the file is there and is readable. If it is, then it is not loading because the DLL itself requires some other DLL; this error isn't usually shown by Windows. You will need some tool such as DEPENDS to load php_imagick.dll and see what unresolved externals it contains.

    You will probably find that some functions are imported by a library (such as libeay32.dll) that is maybe associated with an extension you did not load, or is in the PHP directory but ought to have been copied into Windows' SYSTEM directory, or maybe uses a different VC runtime (e.g MSVCR90.DLL).

    For example, a sample PHP 5.3 php_imagick.dll I found turns out to depend on these two DLL's


    and guess what, CORE_RL_MAGICK is itself depending on other symbols, which explains the problems this guy was experiencing (his solution was maybe a bit more thorough than necessary, but hey, whatever works -- and it might work for you too, but read on)

    ImageMagick - "CORE_RL_magick_.dll not found" or how to install RMagick on windows with ruby 1.9.2

    Looking into CORE_RL_MAGICK again with DEPENDS turns out a dependence on a specific version of Visual C++ Runtime (and QT too, for some versions of IM), which ties this in the ugly can of worms known as "VC6 against VC9" (e.g. ).

    Now, what should you do? It depends. Literally; for instead of blindly reinstalling at random until the stars are right (again: it might work. It often does!), I would fire up DEPENDS on the imagick DLL, then on ImageMagick core DLL, and so on, until I hunted down the maze of twisty little dependencies, all alike, that Windows ought to tell you about, but doesn't.

    (That's why it's called "DLL Hell").

    打赏 评论

相关推荐 更多相似问题