When I try to install rmagic with:
gem install rmagic
it gives error:
Building native extensions. This could take a while... E
This worked for me: