Yeah, the fact that the gem is RMagick (along with other oddly capitalized gems like RedCloth) and that the module imported is then called Magick...doesn't really help using it much :)
On May 1, 2:24 pm, Carl Fyffe <[email protected]> wrote: > The problem was rmagick. Changed to RMagick and everything worked. > > On Thu, Apr 30, 2009 at 9:42 PM, Carl Fyffe <[email protected]> wrote: > > When I try to use the console, it fails in the same way with the same > > error as in this gist: > >http://gist.github.com/104251 > > > The code that I have does not have VERSION anywhere in it, which > > appears to be colliding with something in Rack. I don't know if this > > is causing the plugins not to load or not. Then there is still the > > issue with rmagick not loading as well. > > > I am trying to deploy a vanilla install of CommunityEngine: > >http://communityengine.com > > > Thanks, > > > Carl > > > On Thu, Apr 30, 2009 at 7:08 PM, Morten Bagai <[email protected]> wrote: > > >> Carl, > > >> Is it possibly you're doing something like require 'rmagick'? Instead > >> of the correct form which is require 'RMagick'? Try pulling up a > >> console, and doing something like this (substituting a valid image > >> path for you app): > > >> $ heroku console > >> Ruby console for boing.heroku.com > >> >> require 'RMagick' > >> => [] > >> >> include Magick > >> => Object > >> >> ImageList.new('public/images/logo.png') > >> [public/images/logo.png PNG 186x50 186x50+0+0 DirectClass 8-bit 1kb] > >> => scene=0 > > >> Best, > > >> /Morten > > >> On Apr 29, 2009, at 9:05 PM, Carl Fyffe wrote: > > >>> When I remove it from .gems I get this fancy error: > > >>> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ > >>> action_controller/vendor/rack-1.0/rack.rb:17: > >>> warning: already initialized constant VERSION > >>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/ > >>> loader.rb:184:in > >>> `ensure_all_registered_plugins_are_loaded!': Could not locate the > >>> following plugins: community_engine and white_list (LoadError) > >>> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/ > >>> loader.rb:44:in > >>> `load_plugins' > >>> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/ > >>> initializer.rb:348:in > >>> `load_plugins' > > >>> .... several lines snipped .... > > >>> no such file to load -- rmagick > >>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > >>> `gem_original_require' > >>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > >>> `require' > >>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/ > >>> active_support/dependencies.rb:158:in > >>> `require_without_desert' > >>> /home/slugs/12838_f2b2289_c549/mnt/.gems/gems/desert-0.5.0/lib/ > >>> desert/ruby/object.rb:8:in > >>> `require' > > >>> The whole error can be seen here:http://gist.github.com/104251 > > >>> The app is working locally... > > >>> On Wed, Apr 29, 2009 at 9:38 PM, Morten Bagai <[email protected]> > >>> wrote: > > >>>> Hey, > > >>>> Rmagick is preinstalled. Try removing it from .gems file and just > >>>> requiring it as you normally would. > > >>>> Morten > > >>>> On Apr 29, 2009, at 6:08 PM, Carl Fyffe <[email protected]> wrote: > > >>>>> My application uses RMagick. I put it into my .gems file and do the > >>>>> "git push heroku" dance while everything compiles and deploys. > >>>>> Unfortunately, it does not work. > > >>>>> -----> Heroku receiving push > > >>>>> -----> Installing gem rmagick fromhttp://gems.rubyforge.org > >>>>> ERROR: Error installing rmagick: > >>>>> ERROR: Failed to build gem native extension. > > >>>>> /usr/local/bin/ruby extconf.rb install rmagick --no-ri --no- > >>>>> rdoc --bindir=/code/repos/12838/bin --version=> 0 > >>>>> -shttp://gems.rubyforge.org > > >>>>> Gem files will remain installed in /code/repos/12838/ > >>>>> gems_build/ > >>>>> gems/rmagick-2.9.1 for inspection. > >>>>> Results logged to /code/repos/12838/gems_build/gems/ > >>>>> rmagick-2.9.1/ext/RMagick/gem_make.out > >>>>> Building native extensions. This could take a while... > > >>>>> error: hooks/pre-receive exited with error code 1 > > >>>>> I even tried the rmagick 1.15.17 which is said to be installed in > >>>>> the > >>>>> full list of gems, but that dies too. > > >>>>> help? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~----------~----~----~----~------~----~------~--~---
