Forum: Ruby on Rails Installing Rmagick locally (file_column)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3d333b0012928f3dd5a6861cb09ad683?d=identicon&s=25 Kris Leech (krisleech)
on 2005-12-08 11:28
I'm trying to use the file_column plugin to upload and automatically
resize images. The uploading part works really well, but the images dont
get resized and the thumbnails dont get created. Rails doesn't fail so I
guess file_column is failing silently because Rmagick is not installed
on my system?

This is the code in my model:

 file_column :image,
              :magick => { :geometry => "200x200>" },
              :versions => { "thumb" => "50x50", "medium" => "100x100>"
}


When I try and install Rmagick via remote gem I get:

"Attempting remote install of 'rmagick'
Builidng native extensions. This could take a while ...
configure:1: Can't exec bin/sh (fatal)
ERROR: While executing gem (RunTimeError)"

I already installed the prerequisit, Imagemagick.

Can anyone see any mistakes?

Many thanks, K.
3d333b0012928f3dd5a6861cb09ad683?d=identicon&s=25 Kris Leech (krisleech)
on 2005-12-08 11:38
An ammendment, Rails does fail with an error:

"No such file to load -- RMagick"

So I guess RMagick is not installed. How do I go about doing this if I
can't use gem to install it?
This topic is locked and can not be replied to.