使用 Windows 7 在 XAMPP 1.8.3 上运行 ImageMagick

2022-01-14 00:00:00 xampp imagemagick php imagick

我已经尝试了几个小时让 ImageMagick 在我的本地主机上工作(在 Windows 7 上运行 XAMPP 1.8.3).我已经检查并尝试了我可以在这个网站上找到的所有解决方案,以及其他几十个解决方案.没有任何效果.无论我尝试使用 ImageMagick 构建和 imagick DLL 的哪种组合,当我尝试启动 Apache 时,我总是会遇到某种找不到 dll"错误(具体消息取决于我尝试的组合,但它总是某种缺失的 DLL 消息).谁能给我一个(最近)有效的 XAMPP/ImageMagick/Imagick 组合吗?

I have been trying for hours to get ImageMagick working on my localhost (running XAMPP 1.8.3 on Windows 7). I have checked and tried literally every solution that I can find on this website, and dozens of others. Nothing works. No matter what combination of ImageMagick builds and imagick DLLs I try, I always get some kind of "can't find dll" error when I try to start Apache (the specific message varies based on what combination I'm trying, but it's always some sort of missing DLL message). Can anyone just give me a (moderately recent) combination of XAMPP/ImageMagick/Imagick that works?

推荐答案

好的.我终于找到了一个有效的组合.在 MUCH 反复试验之后,我终于能够让以下组合在我的机器上工作.希望它适用于其他可能为此苦苦挣扎的人.

OK. I finally found a combination that works. After MUCH trial and error, I was finally able to get the below combination to work on my machine. Hopefully it works for anyone else who might be struggling with this.

  • 操作系统:Windows 7 64 位
  • PHP:5.5.6
  • XAMPP:1.8.3
    • 编译器:MSVC11
    • 架构:x86

    注意:一旦我尝试了这个,Apache 启动时没有任何错误消息.我不必重新启动计算机(只需重新启动 Apache).我确实将 ImageMagick 安装在名称中没有空格的目录中(正如一些人所建议的那样,某些安装可能存在问题).就我而言,我将它安装到 c:xamppimagemagick.

    Note: Once I tried this, Apache started without any error messages. I did not have to restart my computer (just restarted Apache). I do have ImageMagick installed in a directory that has no spaces in the name (as some have suggested that might be a problem with some installs). In my case, I installed it to c:xamppimagemagick.

    祝你好运!

相关文章