douxing6532 2014-01-15 09:54
浏览 80

ImageMagick,IMagick和XAMPP的工作版本组合

I'm trying to get the following working: XAMPP, ImageMagick and IMagick PHP extension. I started with the latest of everything:

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

I then tried different versions of the latter two:

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)

(In all cases the PHP extension is installed as '/php/ext/php_imagick.dll')

But on launching XAMPP Apache I always get one of the following two errors (depending on the dll used):

 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

There is lots on the internet about this including this answer Running ImageMagick on XAMPP 1.8.3 with Windows 7, but none consistent and nothing that works for me. I'm starting to think that the versions thing is a red herring and that there is something more subtle at play. Any help appreciated.

  • 写回答

1条回答 默认 最新

  • dongtiandexue123456 2014-12-14 13:32
    关注

    Looking at the errors you received at launching Xampp '%1 is not a valid win32 application', this seems due to a x86 - x64 mixed up. Either by trying to run x64 Imagemagick with Xampp (which is native x86), either/or a wrong PHP extension. Iam no expert in PHP, but it's a rule of thumb to use x86 add-ons, modules, extensions etc. for a native x86 app.

    评论

报告相同问题?

悬赏问题

  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)