When I try to install rmagic with:
gem install rmagic
it gives error:
Building native extensions. This could take a while... E
Solution is to add ppa where those libs could be found.
Add PPA:
sudo add-apt-repository ppa:ricotz/testing
Then update package list:
sudo apt-get update
Finally install it with:
sudo apt-get install libmagickwand-dev