attachment_fu problems with image_science

I'm following clark's tutorial on attachment_fu and the upload works
great, but the code fails to generate thumbnails. I get this error

"Problems loading image_scienceProcessor: no such file to load --
image_science"

though when i check $gem list i see image_science is right where it
should be

actionmailer (2.0.991, 2.0.2)
actionpack (2.0.991, 2.0.2)
activerecord (2.0.991, 2.0.2)
activeresource (2.0.991, 2.0.2)
activesupport (2.0.991, 2.0.2)
acts_as_ferret (0.4.3)
capistrano (2.3.0)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
dnssd (0.6.0)
fastercsv (1.2.3)
fastthread (1.0.1)
fcgi (0.8.7)
ferret (0.11.6)
gem_plugin (0.2.3)
highline (1.4.0)
hoe (1.5.3)
hpricot (0.6)
image_science (1.1.3)
libxml-ruby (0.5.4)
mini_magick (1.2.3)
mongrel (1.1.4)
mongrel_cluster (1.0.5)
net-scp (1.0.0)
net-sftp (2.0.0)
net-ssh (2.0.1)
net-ssh-gateway (1.0.0)
rails (2.0.2)
rake (0.8.1)
RedCloth (3.0.4)
ruby-openid (2.0.4)
rubyforge (1.0.0)
RubyInline (3.6.7)
sqlite3-ruby (1.2.1)
termios (0.9.4)

I modified the model in has_attachment to include ":processor =>
:image_science". I'm having a separate problem installing image_magick,
so that isn't a viable option.

I've searched up and down on the internet, and can't seem to find anyone
with the same problem. If you have any suggestions please let me know.

Richard,

I am having exactly the same problem. Everything works on my macbook
pro. But on my deployment server I get the same error.

I'm still looking. Hopefully I can find a solution. Like you, I'm
having trouble with RMagick. Plus I like Image Magick because it's so
much slimmer (and I only need thumbnailing).

-Danimal

Danimal wrote:

Richard,

I am having exactly the same problem. Everything works on my macbook
pro. But on my deployment server I get the same error.

I'm still looking. Hopefully I can find a solution. Like you, I'm
having trouble with RMagick. Plus I like Image Magick because it's so
much slimmer (and I only need thumbnailing).

-Danimal

On May 28, 10:53 pm, Richard Schneeman <rails-mailing-l...@andreas-

my problem ended up being with my ruby gems path on my server, which can
have many many causes. remember whenever you "require RMagick" that you
capitalize RM, because gems are case sensitive. If you go into your irb,
and type "require rubygems" and then "require RMagick" what do you get??

Hi Richard!

Actually, turns out the RMagick issue was a path deal. It was looking
in /usr/local/lib instead of /usr/lib (or vice-versa... I can't
remember now). I ended up just copying the library since this isn't
even the full deploy server... just a staging server for now.

The real problem is that I can't get ImageScience to load. AFter a TON
of trial and error, I determined it's an incompatibility with
ImageScience and Passenger (mod_rails). It worked fine with Mongrel
and with FastCGI. Ahh well. I'll just use RMagick for now.

-Danimal

What does "which gem" return? What does "sudo gem list" show? Is REE
in your path?
Try to "su" as the owner of your app and make sure you can load the
gem from there.

We had some issues with passenger, REE, and image_science (gems in
general, really) and it was due to gems existing in the wrong gem
repository.

-Chris

ujohnc00 wrote:

What does "which gem" return? What does "sudo gem list" show? Is REE
in your path?
Try to "su" as the owner of your app and make sure you can load the
gem from there.

We had some issues with passenger, REE, and image_science (gems in
general, really) and it was due to gems existing in the wrong gem
repository.

-Chris

On Feb 14, 4:33´┐Żam, Tod Mcintyre <rails-mailing-l...@andreas-s.net>

Also make sure you have freeimage installed properly. This recently
sprouted up again and I had to install freeimage from source per these
directions:

http://www.urbanpuddle.com/articles/2008/01/22/install-freeimage-imagescience-on-ubuntu-gutsy

-Chris