So i had this mac and created a new account , on this new account so there are two account on the computer. First a created the new account and set it to standard user but later i changed it to enable administrator rights. 
I went to install Homebrew using command
 $ ruby -e "($curl -fsSL <https://raw.github.com/mxcl/homebrew/go/install>

First it started downloading then i got the some ucceeding error saying error creating symlink and some files and reason was permission denied. When i try reinstalling it again it says that homebrew is already installed but when i run brew, command not found . How can i succeessfully install homebrew and fix this permission denied issue please ?