I already had Rmagick installed, so you might need to brew install that first. I just know I got a post bundle install message saying I needed to install libmagic, and that fixed the error I was getting.