简体   繁体   English

将ImageMagick安装到Xampp / Windows 7上

[英]Installing ImageMagick Onto Xampp/Windows 7

ImageMagick is working when I test it from cmd but when using it for Xampp and restarting it then the error message I receive is:httpd.exe-Entry Point Not Found. 当我从cmd测试它时ImageMagick正在工作但是当它用于Xampp并重新启动它时,我收到的错误消息是:httpd.exe-Entry Point Not Found。 The procedure entry point MagickGetImageGravity could not be located in the dynamic link library CORE_RL_wand_.dll. 无法在动态链接库CORE_RL_wand_.dll中找到过程入口点MagickGetImageGravity。

The second message is PHP StartUp: Unable to load dynamic library C:\\xampp\\php\\ext\\php_imagick.dll- The specified procedure could not be Found. 第二条消息是PHP StartUp:无法加载动态库C:\\ xampp \\ php \\ ext \\ php_imagick.dll-无法找到指定的过程。

I'm pretty sure second error message is caused by first error up top. 我很确定第二个错误消息是由第一个错误引起的。 Probably wrong dll. 可能是错误的dll。 I'm on Windows 7 64 BIT running PHP 5.3.5 and Apache 2.2.17. 我在Windows 7 64 BIT上运行PHP 5.3.5和Apache 2.2.17。 Thanks 谢谢

My refrence is this page 我的参考是这个页面

ImageMagick 6.8.0 binaries compiled with VC9 (Visual Studio 2008). 用VC9编译的ImageMagick 6.8.0二进制文件(Visual Studio 2008)。 I noticed that the official ImageMagick builds are now Visual Studio 2010 and that wouldn't work well with PHP compiled with 2008. see phpInfo() and search for compiler and php version . 我注意到官方的ImageMagick构建现在是Visual Studio 2010,并且对于使用2008编译的PHP不能很好地工作。请参阅phpInfo()并搜索编译器php版本

The download link for the binaries is here: imagick-php54-php53.tgz 二进制文件的下载链接在这里: imagick-php54-php53.tgz

I download this folder and copy php54 -> php_imagick_ts.dll to xampp\\php\\ext 我下载此文件夹并将php54 - > php_imagick_ts.dll复制到xampp \\ php \\ ext

My PhP Version is : PHP Version 5.4.4 我的PhP版本是: PHP版本5.4.4

then rename it to php_imagick.dll. 然后将其重命名为php_imagick.dll。 At the end restart your appache server. 最后重启你的appache服务器。

I had this same problem and banged my head against all kinds of possible solutions before finally finding a combination of Imagick builds and dll's that would play nicely with my setup. 我遇到了同样的问题,并且在最终找到了Imagick构建和dll的组合之前,我已经开始反对各种可能的解决方案,这将与我的设置很好地配合。 Here's what finally worked for me: 这是最终对我有用的东西:

  • OS: Windows 7 64 Bit 操作系统:Windows 7 64位
  • PHP: 5.5.6 PHP:5.5.6
  • XAMPP: 1.8.3 XAMPP:1.8.3
    • Compiler: MSVC11 编译器:MSVC11
    • Architecture: x86 架构:x86
  • ImageMagick: ImageMagick-6.7.7-5-Q16-windows-dll (available here ) ImageMagick:ImageMagick-6.7.7-5-Q16-windows-dll( 此处可用)
  • Imagick DLL: PHP5.5.x version from http://www.peewit.fr/imagick/ Imagick DLL:来自http://www.peewit.fr/imagick/的 PHP5.5.x版本

Once I finally had this set up, Apache finally started without any errors. 一旦我终于有了这个设置,Apache终于开始没有任何错误。 Hopefully it works for you, too! 希望它也适合你!

我认为在安装最新版本的Windows二进制文件时加载imagemagick php模块有一些问题,我通过下载6.7.7-5-Q16 32位版本来解决问题,并且它在该版本上工作.once安装此版本下载imagemagick PHP模块并重新启动阿帕奇。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM