MySQL Binary Installation (mysql_install_db)
I think you have a mistake, you can't execute:

[mysql@hostname ~]$ . mysql_install_db --defaults-file=my.cnf


Because the correct line is:

[mysql@hostname ~]$ ./mysql_install_db --defaults-file=my.cnf


You don't have in PATH environtment variable the current directory ".".