From: Jeremy Hinegardner Date: 2010-02-05T05:40:41+09:00 Subject: Re: [ANN] rdoc_osx_dictionary 1.2.0 Released On Thu, Feb 04, 2010 at 04:32:41AM +0900, Ryan Davis wrote: > rdoc_osx_dictionary version 1.2.0 has been released! > > * > > rdoc via Apple's Dictionary.app. Automatically builds and installs an > Apple Dictionary with all rdoc nicely formatted. Looks like rdoc_osx_dictionary is subject to $PATH for finding ruby instead of using the ruby it was installed with. In this case, root's path does not have /opt/local/bin in it. % sudo gem install rubygems-sing Successfully installed rubygems-sing-1.2.0 1 gem installed Installing ri documentation for rubygems-sing-1.2.0... Updating ri class cache with 7950 classes... Installing RDoc documentation for rubygems-sing-1.2.0... updating OSX ruby + gem dictionary, if necessary DEBUG: Using /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby to run rdoc_osx_dictionary /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- rdoc_osx_dictionary (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /opt/local/lib/ruby/gems/1.8/gems/rdoc_osx_dictionary-1.2.0/bin/rdoc_osx_dictionary:10 Looks like this patch against 1.2.0 should fix it, at least it works for me. --- a/lib/rdoc_osx_dictionary.rb +++ b/lib/rdoc_osx_dictionary.rb @@ -291,7 +291,8 @@ class RDoc::OSXDictionary def self.install_gem_hooks return if @hooked[:hook] - cmd = File.expand_path File.join(__FILE__, "../../bin/rdoc_osx_dictionary") + rdoc_osx_dictionary_path = File.expand_path File.join(__FILE__, "../../bin/rdoc_osx_dictionary") + cmd = "#{Gem.ruby} #{rdoc_osx_dictionary_path}" # post_install isn't actually fully post-install... so I must # force via at_exit :( enjoy, -jeremy -- ======================================================================== Jeremy Hinegardner jeremy@hinegardner.org