Last week I failed to demonstrate the usage of Metasploit. Because it had problem with ruby 1.8.7. You can find this issue at Metasploit's blog. It's very late time in Korea. So I'd like to write this subject shortly.
1st, We verify the ruby's version which we want to install. We can find its revision number from below site. I found the revision number(36429) what I want to install.
2nd, We have to set up a local repository(mkdir /Users/Shared/dports) and in /opt/local/etc/macports/sources.conf add below line before rsync.
3rd, install ruby port into our local repository.
4th, run portindex.
5th, verify our ruby's port number in ports list. You can see the 1.8.6-p114.
6th, install our old ruby port.
port install ruby @1.8.6-p114
We can see simple lines for installing ruby ports below.
---> Fetching ruby
---> Attempting to fetch ruby-1.8.6-p114.tar.gz from http://www.ibiblio.org/pub/languages/ruby/1.8
---> Attempting to fetch ruby-1.8.6-p114.tar.gz from http://mirrors.sunsite.dk/ruby/1.8
---> Attempting to fetch ruby-1.8.6-p114.tar.gz from ftp://xyz.lcs.mit.edu/pub/ruby/1.8
---> Verifying checksum(s) for ruby
---> Extracting ruby
---> Applying patches to ruby
---> Configuring ruby
---> Building ruby with target all
---> Staging ruby into destroot
---> Installing ruby 1.8.6-p114_0+darwin_9+thread_hooks
---> Activating ruby 1.8.6-p114_0+darwin_9+thread_hooks
---> Cleaning ruby
Finally, we can verify our installed ruby version.
Good night! and be careful cold. T.T