How do I avoid compilation when running brew install
From man brew 

HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK
              If set, fail on the failure of installation from a bottle rather
              than falling back to building from source.


So run:

export HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK=1


Then run the command again.