在 windows 中为回形针 gem 安装 ImageMagick [英] Install ImageMagick for paperclip gem in windows

查看:21
本文介绍了在 windows 中为回形针 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 中为回形针 gem 安装 ImageMagick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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