I know this must be a tedious question to ask again. However, I return this again, even when I run the oneliner command in the terminal and restart the terminal, nothing changes. Running brew doctor again after restarting will cause the same warning. This is strange as I did the same on another machine and worked like a charm.
Thanks K.
Open a terminal and enter this code:
export PATH="/usr/local/bin:$PATH" >> ~/.bash_profile
then close and restart the terminal and enter the following:
brew doctor