Article

Force MacPorts to Install Ruby 1.8.4

Posted  by Blake Watters.

PublicCategorized as Software Development.

Tagged with rails, raleigh.rb and ruby.

Attached is a simple script and associated files that will allow you to force MacPorts to install Ruby 1.8.4 instead of 1.8.5. Why they don’t support previous versions is beyond me and its by no means a trivial exercise to figure out how to do it.

Download here (4.6 KB)

Usage

  $ tar jxvf macports-ruby_1.8.4.tar.bz2
  $ cp -R macports-ruby_1.8.4/* /path/to/my/rails/app/script
  $ cd /path/to/my/rails/app
  $ ./script/hack_ruby_portfile.sh
  $ sudo port install ruby


Arrow_down Hide comments
  1. Sava Chankov said 7/31/07  

    To make it work with MacPorts 1.5, change last line of hack_ruby_portfile.sh
    to
    sudo rsync -vr—exclude ’.*’ ./ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports



Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |