RMagick Installation

RMagcik problems encountered:

1.Why can not install the RMagcik through gem command correctly. The answer may be that you need to install the following packages firstly:

    * g++ (Yes, even if you have gcc installed)
    * imagemagick
    * libc6-dev
    * libmagick9
    * libmagick++9-dev
    * libmagic9-dev
    * ruby1.8-dev

Once that’s done, then do the gem install RMagick.

reference: http://www.urbanpuddle.com/articles/2007/05/29/quick-tip-install-rmagick-gem-on-ubuntu http://www.elctech.com/2008/2/6/setting-up-rmagick-needs-imagemagick-6-3-x-on-ubuntu

2.After successfully installing RMagick, your project may still not work correctly. So, check up your libary dependency using the "ldd" command, for instance, change the direction to RMagick folder, then run "ldd RMagick2.so", what do you see? In the result it shows that you may lost some *.so file in the specified place, what you should do is to copy those files to the very folder or just create a soft link to it. That will work well.

你可能感兴趣的:(gcc,ubuntu,UP)