Lee.Longmore-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2008-Jan-05 07:09 UTC
attachment_fu and ImageScience - problem with RubyInline gem
Hi, I am experiencing the following error when I configure attachment_fu to use ImageScience. I have downloaded and compiled FreeImage, and installed the ImageScience (1.1.3) gem (which installs the RubyInline gem 3.6.6). Any advice or pointers to other help would be very much appreciated. I have spent several hours trying to fix this with no success. Thanks! Error output: SystemExit (ERROR: Can''t find header dir for ruby. Exiting...): /usr/lib/ruby/gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:385:in `abort'' /usr/lib/ruby/gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:385:in `build'' /usr/lib/ruby/gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:679:in `inline'' /usr/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/ image_science.rb:84 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/ dependencies.rb:495:in `require'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/ dependencies.rb:342:in `new_constants_in'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/ dependencies.rb:495:in `require'' /home/leelon/workspace/Pingee/vendor/plugins/attachment_fu/lib/ technoweenie/attachment_fu/processors/image_science_processor.rb:1 /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/ dependencies.rb:203:in `load_without_new_constant_marking'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/ dependencies.rb:203:in `load_file'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/ dependencies.rb:342:in `new_constants_in'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/ dependencies.rb:202:in `load_file'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/ dependencies.rb:94:in `require_or_load'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/ dependencies.rb:248:in `load_missing_constant'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/ dependencies.rb:452:in `const_missing'' /home/leelon/workspace/Pingee/vendor/plugins/attachment_fu/lib/ technoweenie/attachment_fu.rb:87:in `const_get'' /home/leelon/workspace/Pingee/vendor/plugins/attachment_fu/lib/ technoweenie/attachment_fu.rb:87:in `has_attachment'' /home/leelon/workspace/Pingee/app/models/picture_attachment.rb:6 ..... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Gary Reedo
2008-Jan-05 10:05 UTC
Re: attachment_fu and ImageScience - problem with RubyInline
Lee.Longmore-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org wrote:> Hi, > > I am experiencing the following error when I configure attachment_fu > to use ImageScience. > > I have downloaded and compiled FreeImage, and installed the > ImageScience (1.1.3) gem (which installs the RubyInline gem 3.6.6). > > Any advice or pointers to other help would be very much appreciated. I > have spent several hours trying to fix this with no success. > > Thanks! >I followed the same steps and am getting the exact same error. Its very frustrating. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Lee.Longmore-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2008-Jan-07 11:21 UTC
Re: attachment_fu and ImageScience - problem with RubyInline
Gary and others, I finally found the solution -- thanks to the great book "Ruby Cookbook" -- and Image Science is now working perfectly :) I was missing a Ruby library "ruby1.8-dev" (header files for compiling extension modules for the Ruby 1.8). It can be easily installed through your distro''s package manager tool or using: sudo apt-get install ruby1.8-dev Note I am running "ruby 1.8.6 (2007-06-07 patchlevel 36) [x86_64- linux]" RubyInline requires this package. I hope this solves your problem too. On 5 Jan, 10:05, Gary Reedo <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Lee.Longm...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org wrote: > > Hi, > > > I am experiencing the following error when I configure attachment_fu > > to use ImageScience. > > > I have downloaded and compiled FreeImage, and installed the > > ImageScience (1.1.3) gem (which installs the RubyInline gem 3.6.6). > > > Any advice or pointers to other help would be very much appreciated. I > > have spent several hours trying to fix this with no success. > > > Thanks! > > I followed the same steps and am getting the exact same error. Its very > frustrating. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---