How does MacPorts install packages? How can I activate a Ruby installation done via MacPorts?
问题 After trying to install ruby19 on my machine (PPC, Mac OSX 10.5.7) using the following commandline sudo port install ruby19 the version of ruby didn't change ruby -v => ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] I assume that i have two versions of it installed on my mac, but how do i use the latest one now? 回答1: To use a specific ruby version if you have two versions installed you can either specify an absolute path to the one you want. E.g. /your/path/to/ruby Or you can