portのrubyまわりが、ごちゃごちゃ
深い理由はないんだけどrubyのまわりを再インストールしようとしてはまった。
ただ、最新のリビジョンを使いたかっただけなのだけど、
一度uninstallする方法しかみつからなかった。
そうすると、依存関係のあるrubygems, vim も先にuninstallしないといけない。
またはまると思うので、メモっておく
(vimのuninstallが終っている状態から始まっている)
% sudo port install ruby rb-rubygems vim +huge+perl+python+ruby Password: ---> Activating ruby 1.8.7-p72_0+thread_hooks Error: Target org.macports.activate returned: Image error: Another version of this port (ruby @1.8.7-p22_0+thread_hooks) is already active. Error: Status 1 encountered during processing. % sudo port uninstall ruby ---> The following versions of ruby are currently installed: ---> ruby @1.8.7-p22_0+thread_hooks (active) ---> ruby @1.8.7-p72_0+thread_hooks Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry. % sudo port uninstall ruby @1.8.7-p22_0+thread_hooks ---> Unable to uninstall ruby 1.8.7-p22_0+thread_hooks, the following ports depend on it: ---> rb-rubygems Error: port uninstall failed: Please uninstall the ports that depend on ruby first. % sudo port uninstall rb-rubygems ---> Deactivating rb-rubygems 1.2.0_0 ---> Uninstalling rb-rubygems 1.2.0_0 % sudo port uninstall ruby @1.8.7-p22_0+thread_hooks ---> Deactivating ruby 1.8.7-p22_0+thread_hooks ---> Uninstalling ruby 1.8.7-p22_0+thread_hooks /Users/takemo% sudo port install ruby rb-rubygems vim +huge+perl+python+ruby ---> Activating ruby 1.8.7-p72_0+thread_hooks ---> Cleaning ruby ---> Fetching rb-rubygems ---> Verifying checksum(s) for rb-rubygems ---> Extracting rb-rubygems ---> Configuring rb-rubygems ---> Building rb-rubygems with target all ---> Staging rb-rubygems into destroot ---> Installing rb-rubygems 1.2.0_0 ---> Activating rb-rubygems 1.2.0_0 ---> Cleaning rb-rubygems ---> Fetching vim ---> Attempting to fetch 7.2.001 from http://ftp.vim.org/pub/vim/patches/7.2 ---> Attempting to fetch 7.2.002 from http://ftp.vim.org/pub/vim/patches/7.2 : : ---> Attempting to fetch vim-7.2-extra.tar.gz from http://ftp.vim.org/pub/vim/extra/ ---> Attempting to fetch vim-7.2-lang.tar.gz from http://ftp.vim.org/pub/vim/extra/ ---> Verifying checksum(s) for vim ---> Extracting vim ---> Applying patches to vim ---> Configuring vim ---> Building vim with target all ---> Staging vim into destroot ---> Installing vim 7.2.021_0+huge+perl+python+ruby ---> Activating vim 7.2.021_0+huge+perl+python+ruby ---> Cleaning vim % ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin8]