【问题标题】:ImageMagic not working on windowsImageMagick 无法在 Windows 上运行
【发布时间】:2016-02-11 01:35:24
【问题描述】:

正如这篇博客所建议的那样 blog

我的环境 视窗 7 64 位 xampp 5.6.12 32位

  1. 我为 Windows(32 位)安装了 ImageMagic
  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_x86.exe

【问题讨论】:

    标签: windows xampp imagemagick imagick php-extension


    【解决方案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
    

    【讨论】:

      【解决方案2】:

      您收到以下错误消息:

      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

      【讨论】:

      • 是的,我安装了 vcredist_x86.exe 并在 system32 中检查了 vcomp110.dll。仍然给我错误。对不起,我之前没有提到这个
      • 安装后您可能需要重新启动。您安装了哪个版本的 ImageMagick?
      • 我也这样做了:D,我安装了 ImageMagick-6.9.2-5-Q16-x86-dll.exe
      • 如果您的其他软件需要 VS2012 可再发行组件,该版本可能不兼容。版本 6.9.2-5 需要 VS2013 可再发行组件。
      • 64/32 位版本重要吗?
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-25
      • 2014-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多