Something's going wrong. You need to make sure
brew is installed. That's the first step (along with a few steps to ensure that it's fully up to date and pointing at a couple of important things). What happens when you try to run the install command on the brew page I just linked?