Installing Metasploit on Gentoo Linux
At this time, no Gentoo ebuild exists for Metasploit 3. In order to use the Metasploit Framework on Gentoo Linux, you will need to emerge the ruby and rubygems packages. Once these have been installed, use the "gem" command to install version 1.2.2 of rails (required for the msfweb interface). The stable version of rubygems is too old and the following line needs to be appended to the file "/etc/portage/package.keywords" (change x86 to the name of your architecture):
dev-ruby/rubygems ~x86
Once this line has been added, emerge the packages with the following commands:
# emerge ruby # emerge rubygems # gem install -v=1.2.2 rails
If you would like to use the online update feature, you will need to emerge the "subversion" package as well. Once the pre-requisites have been installed, download the Unix tarball from Framework Website and extract it to the directory of your choice. If everything was installed correctly, execute the interface of your choice to get started (msfconsole, msfweb, etc).
Important Note: ShortNamedConstants bug
Gentoo backported a bug from ruby 1.8.7 to 1.8.6; the versions that we know to work include dev-lang/ruby-1.8.6_p114 and dev-lang/ruby-1.8.6_p287-r3 (which is arch masked). Anything in between will most likely not work with the metasploit framework.
