Subversion Error - svn: Could not use external editor to fetch log messages

When I was installing Subversion on CentOS 5.3 x86_64 and when I tried to do a "svn commit". The error was

"svn: Could not use external editor to fetch log message; consider putting the $SVN_EDITOR environment variable or using the --message......."
"svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set..............."


To solve the issue
You have to input the environment variables in your .bash_profile in your home directory
# vim .bash_profile
--------------------------------------
export SVN_EDITOR=/usr/bin/vim
--------------------------------------
# source .bash_profile