Results 1 to 6 of 6

Thread: RoR: no such file to load -- RMagick ? help !

  1. #1
    Join Date
    Jun 2006
    Posts
    11

    Default RoR: no such file to load -- RMagick ? help !

    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.

    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

  2. #2

    Default

    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.

  3. #3
    Join Date
    Jun 2006
    Posts
    11

    Default

    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.

  4. #4
    Join Date
    Jun 2006
    Posts
    11

    Default

    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.

  5. #5
    Join Date
    Jun 2006
    Posts
    11

    Exclamation

    ITS WORKING !

    Bluehost now has the RMAgick gem.


  6. #6
    Join Date
    Feb 2006
    Posts
    11

    Default

    Level3 needs to install this module on each box. we do so on a per request basis. If you need it, just ask.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •