2015-11-10 22 views
0

由於這個博客建議 blogImageMagic不工作在Windows

我的環境 的Windows 7 64位 XAMPP 5.6.12 32位

  1. 我安裝ImageMagic的Windows(32位)
  2. 設置ImageMagic和MAGICK_HOME變量的環境路徑
  3. 下載php_imagick.dll並粘貼到C:\ xampp \ php \ ext中,文件名以CORE_RL開頭_ *在C:\ XAMPP的\ apache的\ BIN

現在當Apache啓動時,它會顯示錯誤

the programme can't start because VCOMP110.DLL is missing from your computer. try reinstall program to fix this problem

我不知道爲什麼會發生錯誤。 我也安裝了,選擇vcredist_x64.exe

回答

0

你得到以下錯誤消息:

The program can't start because VCOMP110.DLL is missing from your computer. Try reinstalling the program to fix this problem.

這意味着你沒有安裝Visual C++ Redistributable for Visual Studio 2012。您可以從這個網頁下載:https://www.microsoft.com/en-us/download/details.aspx?id=30679

+0

是的我安裝了vcredist_x86.exe並在system32中檢查了vcomp110.dll。它仍然給我錯誤。對不起,我之前沒有提到過這個 –

+0

安裝後可能需要重新啓動。你安裝了哪個版本的ImageMagick? – dlemstra

+0

我也這樣做了:D,並且我安裝了ImageMagick-6.9.2-5-Q16-x86-dll.exe –

-1
I am late here, but maybe it helps someone, you can check the Architecture using phpinfo(). 
ImageMagick + Imagick + PHP on XAMPP 
Environment 
Windows7 
32bit OS 
XAMPP v3.2.1 
Step for install 
Install Imagick (PHP Extention). 
Install DLL of extension module. 
Setting DLL. 
1. Install ImageMagick (PHP Extention) under C:/ 
Install PHP Extention. 
You must install correct version which corresponded to your OS version. i installed 32 bit version ImageMagick-6.9.1-10-Q16-x86-dll.exe. 
Confirm extension_dir of phpinfo(); below is ok. 
extention_dir C:/xampp/php/ext 
2. Install DLL & Setting 
2-1. Install PHP Extension 
Install by PECL 
!! Then confirm phpinfo(); you should select install. 
Case of enabled > php_imagick.dll, TS 
Case of disabled > php_imagick.dll, NTS 

2-2. DLL file move into extension folder 
php_imagick.dll in download folder move to C:/xampp/php/ext 
2-3. CORE_RL_* move into Apache binary folder 
CORE_RL_* file move into C:/xampp/apache/bin 
2-4. Add extension to php.ini 
You should write extension=php_imagick.dll on php.ini (!! Write under [PECL]). 
3. Setting Environment 
Add MAGICK_HOME to your environment PATH. 
Try phpinfo(); 
4. convert image on CLI 
>convert wizard: wizard.jpg 
>convert wizard.jpg win: 
But in this state, ImageMagick number of supported formats is 0 and ImageMagick supported formats is no value so you should do below. 
All *_.dll file in C:/ImageMagick-6.9.1-Q16/modules/coders copy to C:/xampp/apache/bin 
All *_.dll file in C:/ImageMagick-6.9.1-Q16/modules/filters copy to C:/xampp/apache/bin 
All *_.dll file in C:/ImageMagick-6.9.1-Q16/modules/coders copy to C:/ImageMagick-6.9.1-Q16 
All *_.dll file in C:/ImageMagick-6.9.1-Q16/modules/filters copy to C:/ImageMagick-6.9.1-Q16 
Restart Apache 

taken from: 
http://hrt0kmt.hatenablog.com/entry/2015/05/27/170608