'RUBY'에 해당되는 글 1

  1. 2008.09.29 Installing Old Version of ruby using MacPorts (3)
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.
http://trac.macports.org/log/trunk/dports/lang/ruby/Portfile

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.
file:///Users/Shared/dports

3rd, install ruby port into our local repository.
svn co -r 36429 http://svn.macports.org/repository/trunk/dports/lang/ruby/ lang/ruby/
svn co -r 36429 http://svn.macports.org/repository/macports/trunk/dports/lang/ruby/ lang/ruby/

4th, run portindex. 
portindex /Users/Shared/dports

5th, verify our ruby's port number in ports list. You can see the 1.8.6-p114.
port list

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. 
ruby -v

Good night! and be careful cold. T.T 
신고
이전 1 다음

티스토리 툴바