简体   繁体   English

在Windows中安装ImageMagick for回形针gem

[英]Install ImageMagick for paperclip gem in windows

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. 我按照该指南使用了回形针http://railscasts.com/episodes/134-paperclip?language=zh-CN&view=asciicast没关系,但是请注意,要重新调整大小,您需要在服务器上安装ImageMagick。

So how should i install ImageMagick ?? 那么我应该如何安装ImageMagick? i have WINDOWS 8 and on the site http://www.imagemagick.org/ download does not work!!!! 我有WINDOWS 8,并且在站点http://www.imagemagick.org/上无法下载!

It certainly works - you need to make sure of 2 things: 它当然可以工作-您需要确保以下两项:

  • You install the correct static version for your OS (32-bit vs 64-bit). 您为您的操作系统安装了正确的静态版本(32位和64位)。 The 32-bit (x86) will work regardless, the 64-bit (x64) will only work on a 64-bit system. 32位(x86)可以工作,而64位(x64)只能在64位系统上工作。 And you need to download the static version - not the -dll version - as Paperclip needs to call the executable directly. 并且您需要下载静态版本-而不是-dll版本-因为Paperclip需要直接调用可执行文件。 (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. 您将bin目录添加到您的环境路径。 The installer should do this for you, unless you unchecked that option. 除非您取消选中该选项,否则安装程序应为您执行此操作。

UPDATE UPDATE

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. 只是注意到链接已断开:)它们仍然指向较早的6.8.5-6版本,此版本已移至旧版。 You can get the latest binaries from here . 您可以从此处获取最新的二进制文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM