Rails、rmagick 和 webfaction

发布于 2024-12-23 06:11:32 字数 300 浏览 6 评论 0原文

我在 webfaction 上加载 imagemagick 和 rmagick 时遇到问题。

我安装了一个名为 Balderapp 的 Rails 应用程序,用于组织图像。

我似乎无法通过balder上传图像。

Balder 使用 imagemagick 和 rmagick

当我使用控制台时,

并执行此操作,我得到一个 nill 作为返回,这让我认为 rmagick 无法正常工作irb(main):003:0>需要“RMagick” =>无

thx

sg

I am having a problem loading imagemagick and rmagick on webfaction.

I have installed a rails app called Balderapp that organizes images.

I can't seem to upload the image through balder.

Balder uses imagemagick and rmagick

when i use the console and do this I get a nill as a return making me think rmagick is not working

irb(main):003:0> require 'RMagick'
=> nil

thx

sg

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

围归者 2024-12-30 06:11:32

一般步骤是:

  1. 从主目录中的源代码安装 ImageMagick。
  2. 安装 RMagick gem,链接到您在步骤 1 中构建的 ImageMagick 库。

详细步骤可在 WebFaction 安装 ImageMagick 和 RMagick 的过程

The general steps are:

  1. Install ImageMagick from source in your home directory.
  2. Install the RMagick gem, linked to the ImageMagick libraries that you built in step 1.

Detailed steps are available in WebFaction's procedure for installing ImageMagick and RMagick.

清秋悲枫 2024-12-30 06:11:32

在 Web 派系中,请确保您位于正确的文件夹 cd $HOME/webapps/app app 是您的应用程序的名称。确保 rmagick gem 已安装

在 ./bin/irb 中的 ./bin/gem list 那么这应该可以工作:

require 'rubygems'
require 'RMagick'

如果您使用的是 ruby​​ 1.8.* 那么不要忘记执行 require '红宝石'

On Web faction make sure your are in the correct folder cd $HOME/webapps/app app is the name of your app. Make sure the rmagick gem is installed ./bin/gem list

in ./bin/irb then this should work:

require 'rubygems'
require 'RMagick'

if you are using ruby 1.8.* then do not forget to do the require 'rubygems'

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文