如何在 Windows 7 上安装 ImageMagick 以与 PHP 一起使用 (3)
还有其他关于如何在 Windows 7 上安装 Imagick 的主题,但到目前为止对我没有帮助.(也许最近的版本出现了问题)
我已按照以下步骤安装:
- 下载并安装 ImageMagick
<块引用>
http://www.imagemagick.org/download/binaries/ImageMagick-6.8.8-1-Q16-x86-dll.exe
- 下载 php_imagick.dll 并复制到扩展目录 (c:xamppphpext)
<块引用>
http://www.peewit.fr/imagick/php55/vc11/x86/ts/php_imagick.dll
- 编辑 php.ini 文件并添加新的扩展名 (c:xamppphpphp.ini)
<块引用>
extension=php_imagick.dll
保存ini文件并重启Apache(必要时重启Windows)
启动 Apache 并运行测试
当我启动 Apache 时,我得到一个弹出框,显示:
<块引用>程序无法启动,因为您的计算机中缺少 php5.dll.尝试重新安装程序以解决此问题.
紧随其后的是另一个:
<块引用>PHP 启动:无法加载动态库 'C:xamppphpextphp_imagick.dll' - 找不到指定的模块.
根据 funtioneer 我怀疑某种编译错误.
现在我有 PHP 版本 5.5.6 (xampp 1.8.3) 和编译器 MSVC11,它与 php_imagick.dll 文件相同.
从源代码下载 ImageMagick 并自己编译是正确的方法吗?(以前从未在 Windows 中编译过)
解决方案我尝试从 这里.那一个实际上与 http://www.peewit 的 php_imagick.dll(PHP 5.5.x 的 Imagick)一起使用.fr/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:
- Download and install ImageMagick
http://www.imagemagick.org/download/binaries/ImageMagick-6.8.8-1-Q16-x86-dll.exe
- Download php_imagick.dll and copy to extension dir (c:xamppphpext)
http://www.peewit.fr/imagick/php55/vc11/x86/ts/php_imagick.dll
- Edit php.ini file and add new extension (c:xamppphpphp.ini)
extension=php_imagick.dll
Save ini file and restart Apache (if necessary, restart Windows)
Start Apache and run test
When I start Apache i get a pop up box that displays:
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 Startup: Unable to load dynamic library 'C:xamppphpextphp_imagick.dll' - The specified module could not be found.
According to funtioneer I suspect some kind of compilation error.
Now I have PHP Version 5.5.6 (xampp 1.8.3) with compiler MSVC11 which is the same as for the php_imagick.dll file.
Is download ImageMagick from source and compile it on my own the right way to go? (have never compiled in Windows before)
解决方案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)
相关文章