如何在Windows 7上安装ImageMagick与PHP一起使用(3) [英] How to install ImageMagick to use with PHP on Windows 7 (3)
问题描述
还有其他关于如何在Windows 7上安装Imagick的主题,但到目前为止对我没什么帮助。 :(
There are other threads about how to install Imagick on Windows 7 but no help for me so far. :(
(也许最新版本出现了问题)
(Maybe problems have came up with more recent versions)
我已按照以下步骤进行安装:
I have followed these steps to install:
-
下载并安装ImageMagick
Download and install ImageMagick
http:// www。 imagemagick.org/download/binaries/ImageMagick-6.8.8-1-Q16-x86-dll.exe
下载php_imagick.dll并复制到扩展名目录(c:\ xampp \ php \ _ext)
Download php_imagick.dll and copy to extension dir (c:\xampp\php\ext)
http://www.peewit.fr/imagick/php55/vc11/x86 /ts/php_imagick.dll
编辑php.ini文件并添加新扩展名(c:\ xampp\php\php.ini)
Edit php.ini file and add new extension (c:\xampp\php\php.ini)
extension = php_imagick.dll
extension=php_imagick.dll
保存ini文件并重新启动Apache(如有必要,重新启动Windows)
Save ini file and restart Apache (if necessary, restart Windows)
启动Apache并运行测试
Start Apache and run test
当我启动Apache时,我会弹出一个弹出框:
When I start Apache i get a pop up box that displays:
程序可以' t start因为您的计算机缺少php5.dll。尝试重新安装该程序以解决此问题。
The program can't start because php5.dll is missing from your computer. Try reinstalling the program to fix this problem.
然后直接在另一个之后:
Then directly after this comes another:
PHP启动:无法加载动态库'C:\ xampp \ php \ ecxt \ php_imagick.dll' - 找不到指定的模块。
PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_imagick.dll' - The specified module could not be found.
根据funtioneer 我怀疑某种编译错误。
According to funtioneer I suspect some kind of compilation error.
现在我有PHP版本5.5.6(xampp 1.8.3)与编译器MSVC11这是与php_imagick.dll文件相同。
Now I have PHP Version 5.5.6 (xampp 1.8.3) with compiler MSVC11 wich is the same as for the php_imagick.dll file.
从源代码下载ImageMagick并以我自己的方式编译它的正确方法? (之前从未在Windows中编译过)
Is download ImageMagick from source and compile it on my own the right way to go? (have never compiled in Windows before)
推荐答案
我尝试下载ImageMagick-6.7.7-5-而不是使用最新版本来自此处的Q16-windows-dll。那个实际上与 http://www.peewit的php_imagick.dll(Imagick for PHP 5.5.x)一起使用.fr / imagick / 。
Instead of using the latest version I tried downloading ImageMagick-6.7.7-5-Q16-windows-dll from here. That one actually worked with the php_imagick.dll (Imagick for PHP 5.5.x) from http://www.peewit.fr/imagick/.
这不是最新版本但它有效。 (即使没有重新启动计算机)
This is not the latest version but it worked. (even without restarting the computer)
这篇关于如何在Windows 7上安装ImageMagick与PHP一起使用(3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!