When I try to install rmagic with:
gem install rmagic
it gives error:
Building native extensions. This could take a while... E
You only need to install:
sudo apt-get install libmagickwand-dev