I have seen other people with the same issue of installing RMagick on Mountain Lion However none of the suggested solutions have allowed me to successfully install rmagick.
check my answer to openssl problem https://stackoverflow.com/a/13958931/497756 - just make sure that imagemagick was compiled including *.pc files - which is the default for most software but not all of it.