Forum: Ruby on Rails issue loading RMagick

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.
0b3f2d15057b7bbeaaa9290b2e43fc14?d=identicon&s=25 mi (Guest)
on 2008-12-17 20:18
(Received via mailing list)
Using attachment_fu and 'Rmagick' as processor I have the following
error

Problems loading RmagickProcessor: no such file to load -- RMagick

( the code is
           begin
            processor_mod =
Technoweenie::AttachmentFu::Processors.const_get("#{attachment_options
[:processor].to_s.classify}Processor")
            include processor_mod unless included_modules.include?
(processor_mod)
          rescue Object, Exception
            raise unless load_related_exception?($!)
            logger.debug("Problems loading #{options[:processor]}
Processor: #{$!}")
          end
)


while no error if I try the following from the console:

Loading development environment (Rails 2.2.2)
>> Technoweenie::AttachmentFu::Processors.const_get("RmagickProcessor")
=> Technoweenie::AttachmentFu::Processors::RmagickProcessor
>>


Anyone have an idead of the root cause of this problem?
D93ae163042e0a937941e0ba4d8ed5d7?d=identicon&s=25 Eric (Guest)
on 2008-12-17 21:22
(Received via mailing list)
Have you installed RMagick?

-e
0b3f2d15057b7bbeaaa9290b2e43fc14?d=identicon&s=25 mi (Guest)
on 2008-12-18 09:46
(Received via mailing list)
Yes, I installed the rmagick gem.

The strange thing is the from the console it works.

Any idea?
Fbd9cb107fe7c941333d6a3488691989?d=identicon&s=25 Ramon Tayag (ramontayag)
on 2008-12-18 13:25
(Received via mailing list)
Try using mini_magick.. see if it helps.

Ramon Tayag
This topic is locked and can not be replied to.