【问题标题】:Working version combination of ImageMagick, IMagick and XAMPPImageMagick、IMagick 和 XAMPP 的工作版本组合
【发布时间】:2014-02-03 17:29:07
【问题描述】:

我正在尝试使以下工作:XAMPP、ImageMagick 和 IMagick PHP 扩展。我从最新的一切开始:

xampp-win32-1.8.3-2-VC11
ImageMagick-6.8.8-2-Q16-x64-dll
php_imagick-3.1.2-5.5-ts-vc11-x86

然后我尝试了后两者的不同版本:

ImageMagick-6.8.8-2-Q8-x86-dll, ImageMagick-6.7.7-5-Q16-windows-dll
php_imagick-3.2.0b1-5.4-ts-vc9-x86 (and others)

(在所有情况下,PHP 扩展都安装为“/php/ext/php_imagick.dll”)

但在启动 XAMPP Apache 时,我总是遇到以下两个错误之一(取决于使用的 dll):

 PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_imagick.dll'
      - The specified module could not be found; or
      - %1 is not a valid win32 application

互联网上有很多关于此的内容,包括这个答案Running ImageMagick on XAMPP 1.8.3 with Windows 7,但没有一致的,也没有什么对我有用。我开始认为版本的事情是一个红鲱鱼,并且有一些更微妙的东西在起作用。任何帮助表示赞赏。

【问题讨论】:

  • 这里有同样的问题。你能同时找到解决方案吗?
  • 嗨,很抱歉延迟回复。我最终的解决方案是使用 Wamp 而不是 Xampp。界面不是很好,但它让我跑起来了。
  • 啊好的。谢谢!我会试试看。只要我可以在我的电脑上安装 wamp 和 xampp 就可以了;)

标签: php apache imagemagick xampp imagick


【解决方案1】:

查看您在启动 Xampp 时收到的错误“%1 不是有效的 win32 应用程序”,这似乎是由于 x86 - x64 混合造成的。通过尝试使用 Xampp(本机 x86)运行 x64 Imagemagick,或者/或错误的 PHP 扩展。 我不是 PHP 专家,但经验法则是为原生 x86 应用程序使用 x86 附加组件、模块、扩展等。

【讨论】:

    猜你喜欢
    • 2014-06-10
    • 2015-05-28
    • 2018-08-16
    • 2014-06-11
    • 2016-04-04
    • 2020-04-14
    • 1970-01-01
    • 2014-07-02
    • 1970-01-01
    相关资源
    最近更新 更多