在Windows中为paperclip gem安装ImageMagick [英] Install ImageMagick for paperclip gem in windows

查看:116
本文介绍了在Windows中为paperclip gem安装ImageMagick的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照本指南使用回形针 http://railscasts.com / episodes / 134-paperclip?language = en& view = asciicast
一切正常,但请注意,要启用调整大小,您需要在服务器上安装ImageMagick。

I followed this guide to use paperclip http://railscasts.com/episodes/134-paperclip?language=en&view=asciicast it is all ok but note that to enable resizing you’ll need to have ImageMagick installed on your server.

那么我应该如何安装ImageMagick?我有WINDOWS 8并在网站上 http://www.imagemagick.org/ 下载不起作用!! !!

So how should i install ImageMagick ?? i have WINDOWS 8 and on the site http://www.imagemagick.org/ download does not work!!!!

推荐答案

这当然有效 - 你需要确定两件事:

It certainly works - you need to make sure of 2 things:


  • 为您的操作系统安装正确的静态版本(32位与64位)。 32位(x86)无论如何都可以工作,64位(x64)只能在64位系统上运行。而且你需要下载静态版本 - 而不是 -dll 版本 - 因为Paperclip需要直接调用可执行文件。 (当然,我确信您知道下载安装程序文件不会为您安装它,对吧?那就是,您需要打开文件才能开始安装...)

  • 将bin目录添加到环境路径中。安装人员应该为您执行此操作,除非您取消选中该选项。

  • You install the correct static version for your OS (32-bit vs 64-bit). The 32-bit (x86) will work regardless, the 64-bit (x64) will only work on a 64-bit system. And you need to download the static version - not the -dll version - as Paperclip needs to call the executable directly. (Of course, I'm sure that you knew that downloading the installer file isn't going to install it for you, right? That is, you need to open the file to start the installation...)
  • You add the bin directory to your environment path. The installer should do this for you, unless you unchecked that option.

更新

刚刚注意到链接已损坏:)他们仍然指向旧的6.8.5-6版本,此后已转移到旧版本。您可以从此处获取最新的二进制文件。

Just noticed that the links are broken :) They still point to the older 6.8.5-6 version that have since been moved to legacy. You can get the latest binaries from here.

这篇关于在Windows中为paperclip gem安装ImageMagick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆