I'm guessing your .bash_profile
or .bashrc
has a line that looks like
export PATH=/usr/local/bin
This is overwriting all the existing stuff that needs to be in your $PATH
. You need to change this line to look like
export PATH=/usr/local/bin:$PATH