# Problem gettinh attachtment\_fu & imagescience to work

**URL:** <https://www.ruby-forum.com/t/problem-gettinh-attachtment-fu-imagescience-to-work/128722>\
**Category:** Rails\
**Created:** [February 11, 2008, 1:07am UTC](https://www.ruby-forum.com/t/problem-gettinh-attachtment-fu-imagescience-to-work/128722 "2008-02-11T01:07:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@peter](https://www.ruby-forum.com/u/peter)\
**Post date:** [February 11, 2008, 1:07am UTC](https://www.ruby-forum.com/t/problem-gettinh-attachtment-fu-imagescience-to-work/128722/1 "2008-02-11T01:07:40Z")

</div>

In my app, i want my users to upload an avatar so after some  
searching i ended up on Mike C.'s blog ([http://clarkware.com/cgi/](http://clarkware.com/cgi/)  
blosxom/2007/02/24) I followed the instructions in his tutorial, using  
ImageScience as the imageprocessor (sudo gem install image\_sciecne),  
created the modesl, migrations etc but get this error when i go to the  
new-action in his controller:

CompilationError in MugshotController#new

error executing cc -shared -fPIC -fno-strict-aliasing -g -O2 -fPIC -  
I /usr/lib/ruby/1.8/i486-linux -I /usr/include -o “/home/  
peter/.ruby\_inline/Inline\_ImageScience\_aa58.so” “/home/  
peter/.ruby\_inline/Inline\_ImageScience\_aa58.c” -lfreeimage -lstdc++:  
256  
Renamed /home/peter/.ruby\_inline/Inline\_ImageScience\_aa58.c to /home/  
peter/.ruby\_inline/Inline\_ImageScience\_aa58.c.bad

I have no idea what it says or what i should do about it…
