I tried to install Homebrew like this:

```
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"

```

It didn’t install correctly so I closed Terminal and tried again. Now it displays me the following message:

```
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup

```

I tried to do that but without success. The following message is displayed:

```
brew: command not found

```

So, the problem is that Homebrew is installed but actually it is not installed. Any suggestions how to solve this problem? Thank you!