Make sure you run software update and install all updates for the operating system and install the latest version of Xcode so as to be able to compile software. I recommend you first try with the following install script since it will do more than what is covered in the guide. This Guide covers the installation of Metasploit Framework OSS Project on OSX Lion and Mountain Lion
Installing Metasploit Framework on Lion and Mountain Lion