I had same issue with oh-my-zsh
While installing rvm with option –rails, there was this warning:
This solution works for me:
Open .zshrc file, and find PATH line
change
export PATH=/path/to/something
into
export PATH="$PATH:/path/to/something"
save it and do source ~/.zshrc,
Then it worked.