I have two ruby installs on os X after migrating from tiger to leopard.
The old one, version 1.8.5 is active and doesn’t work, the new one,
version 1.8.6 is installed, but not active. How do I correct the
sudo port install ruby
—> Fetching ruby
—> 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-p111_1+darwin_9+thread_hooks
—> Activating ruby 1.8.6-p111_1+darwin_9+thread_hooks
Error: Target org.macports.activate returned: Image error: Another
version of this port (ruby @1.8.6-p111_1+thread_hooks) is already
Error: Status 1 encountered during processing.
18 ~/Ruby/source ->which ruby
19 ~/Ruby/source ->ruby --version
ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin]
20 ~/Ruby/source ->whereis ruby
21 ~/Ruby/source ->sudo port uninstall ruby
—> The following versions of ruby are currently installed:
—> ruby @1.8.6-p111_1+darwin_9+thread_hooks
—> ruby @1.8.6-p111_1+thread_hooks (active)
Error: port uninstall failed: Registry error: Please specify the full
version as recorded in the port registry.
22 ~/Ruby/source ->
A typical error from the non-working ruby:
gem_original_require': no such file to load -- mechanize (LoadError) from /sw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
Where is ruby 1.8.6 installed in a standard leopard install?
How is the install different than 1.8.5?
How do I uninstall 1.8.5 and leave 1.8.6?