読者です 読者をやめる 読者になる 読者になる

Leopard で MacPorts から rubygems がインストールできない

Mac

Macbookrascut を入れようと思って、ports から色々入れようとしたら、

% sudo port install rb-rubygems
・・・
./lib/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- socket (LoadError)
	from ./lib/rubygems/custom_require.rb:27:in `require'
	from /opt/local/lib/ruby/1.8/net/protocol.rb:21
	from ./lib/rubygems/custom_require.rb:27:in `gem_original_require'
	from ./lib/rubygems/custom_require.rb:27:in `require'
	from /opt/local/lib/ruby/1.8/net/http.rb:28
	from ./lib/rubygems/custom_require.rb:27:in `gem_original_require'
	from ./lib/rubygems/custom_require.rb:27:in `require'
	from ./lib/rubygems/remote_fetcher.rb:1
	from ./lib/rubygems/custom_require.rb:27:in `gem_original_require'
	from ./lib/rubygems/custom_require.rb:27:in `require'
	from ./lib/rubygems/source_info_cache_entry.rb:3
	from ./lib/rubygems/custom_require.rb:27:in `gem_original_require'
	from ./lib/rubygems/custom_require.rb:27:in `require'
	from ./lib/rubygems/source_info_cache.rb:4
	from ./lib/rubygems/custom_require.rb:27:in `gem_original_require'
	from ./lib/rubygems/custom_require.rb:27:in `require'
	from setup.rb:206

Error: Status 1 encountered during processing.

でしくじる。
#15254 (rb-rubygems 1.1.1_0 fails on Staging phase) – MacPorts で上がっていた。
そして Leopard には rubygems が /usr/lib/ruby/gems に入ってることに気づいた。

(追記 2009/01/09)
上記の#15254 (rb-rubygems 1.1.1_0 fails on Staging phase) – MacPorts#15177 (ruby-1.8.6-p111+ doesn't work with autoconf-2.62) – MacPorts の duplicate であり、#15177 がFixed なので現在は直っているとおもわれます。