Followed the Hivelogic tutorial to install the Rails stack on Leopard. This message was due to the messed up PATH variable in ./bash_login. I deleted the line that was mentioned in the MySQL installation and there is only one line:
That fixed the problem. I had to install the Tinkertool to make the invisible files show up in the Finder so that it can be edited.