Installing attachment_fu

Posted by mhagedorn on September 12th, 2007 filed in Rails

After hearing Rick Olsen’s talk at the LSRC, I simply had to try the attachment_fu plugin that he wrote to handle image uploads. Strictly speaking, this plugin doesn’t have any other external requirements. However (there always is a however isn’t there?) if you are going to take advantage of automatic thumbnails or resizing or the like, you need some kind of backing image library to make it all work. This of course caused me much consternation after fighting with osx to install rmagic. I had little desire to repeat that episode. I referenced Mike Clark’s blog entry about installing attachment_fu, and he referenced and recommended installing ImageScience to handle all the image processing duties. The instructions had a few bumps in them (notably installing FreeImage), and I wanted to make it easier on folks who follow after me, so I wrote a script to handle all of the downloading and compiling drudgery to get ImageScience up and running. I am running my systems on OSX, but the script should work just fine due to the makefiles being cross platform. Download it and run it!


2 Responses to “Installing attachment_fu”

  1. Joe Says:

    Mike: It was good to meet you at LSRC. I skipped Rick’s talk and went back to the hotel room for a few hours to work on some Ruby. Since the conf I’ve been able to poke around Rails a bit. Wow. There are so many extensions available! I’ll certainly have to take a look at attachment_fu.

    Taking Nutter’s advice I decided to blog through my novice Ruby adventures. Perhaps it will be helpful to somebody.

  2. Mike Says:

    Hi there,

    I just run the file but I dont now If it installed imageScience..I also got some errors:

    checking whether make sets $(MAKE)… no checking for a BSD-compatible install… /usr/bin/install -c checking for gcc… no checking for cc… no checking for cc… no checking for cl… no configure: error: no acceptable C compiler found in $PATH See `config.log’ for more details. imsciinst.sh: line 35: make: command not found Password: sudo: make: command not found imsciinst.sh: line 40: wget: command not found unzip: cannot find or open FreeImage393.zip, FreeImage393.zip.zip or FreeImage393.zip.ZIP. imsciinst.sh: line 42: cd: FreeImage: No such file or directory imsciinst.sh: line 43: make: command not found sudo: make: command not found sudo: gem: command not found

    Whats wrong?????

Leave a Comment

You must be logged in to post a comment.