PDA

View Full Version : RoR: no such file to load -- RMagick ? help !



madd02
06-27-2006, 03:38 AM
Hey all,
I have finally got my RoR application working on bluehost.

I have one small problem though, i use the plugin 'file_column' that uses RMagick to resize my images as thumbnails. This works fine on my local machine i am able to upload images and save resized copies.

When i try to access a page using the file_column features i get the error listed at the bottom of thsi post.

I have checked and bluehost doesnt have the RMagic gem on their gem list.:eek:

Part of the install on my local machine was to run the following command:
gem install RMagick-win32-1.x.x-mswin32.gem

Question: am i able to run this command to load the gem ? If not how do i get rmagick working ???




Error Below
--------------------------------------------------------------
MissingSourceFile in ImagesController#list

no such file to load -- RMagick

RAILS_ROOT: ../config/..
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
#{RAILS_ROOT}/vendor/plugins/trunk/lib/magick_file_column.rb:208:in `file_column'
#{RAILS_ROOT}/vendor/plugins/trunk/lib/file_column.rb:698:in `file_column'
#{RAILS_ROOT}/app/models/image.rb:4
#{RAILS_ROOT}/app/controllers/images_controller.rb:14:in `list'

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
#{RAILS_ROOT}/vendor/plugins/trunk/lib/magick_file_column.rb:208:in `file_column'
#{RAILS_ROOT}/vendor/plugins/trunk/lib/file_column.rb:698:in `file_column'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in `require_or_load'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in `depend_on'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:in `const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/inflector.rb:161:in `constantize'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/string/inflections.rb:59:in `constantize'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:194:in `paginator_and_collection_for'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:129:in `paginate'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch'
dispatch.cgi:10

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
#{RAILS_ROOT}/vendor/plugins/trunk/lib/magick_file_column.rb:208:in `file_column'
#{RAILS_ROOT}/vendor/plugins/trunk/lib/file_column.rb:698:in `file_column'
#{RAILS_ROOT}/app/models/image.rb:4
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in `require_or_load'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in `depend_on'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:in `const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/inflector.rb:161:in `constantize'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/string/inflections.rb:59:in `constantize'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:194:in `paginator_and_collection_for'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:129:in `paginate'
#{RAILS_ROOT}/app/controllers/images_controller.rb:14:in `list'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch'
dispatch.cgi:10

This error occured while loading the following files:
image.rb
RMagick

RyanTMulligan
06-27-2006, 07:21 PM
I'm pretty sure you have to get Bluehost to install Gems. I gave them a ticket to install Capistrano but they haven't yet.

madd02
06-27-2006, 09:14 PM
thanks for your reply.

i have requested the gem in a ticket. Lets hope the bluehost support is good.

It seems rather a common and usefull gem im surprised its not on the list. How does everyone else upload/resize their images in Ruby on Rails.

madd02
06-28-2006, 01:05 PM
As an update.

The great people at BLUEHOST have attempted to load the RMagick gem!! It has been passed to level 3 support now.

Granted its not there yet, but its amazing to have a support team who really support.

THANKS GUYS !

To those watching this thread i will update once the new gem is in place.

madd02
06-28-2006, 02:20 PM
ITS WORKING !

Bluehost now has the RMAgick gem.

:)

felippe
06-30-2006, 01:43 AM
Level3 needs to install this module on each box. we do so on a per request basis. If you need it, just ask.