Just installed the XML-Mapping Gem (http://xml-mapping.rubyforge.org/) and kept getting a require error every time I tried to use it.
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- xml/mapping (LoadError)
Everything seemed okay when I looked at the code, until eventually I noticed that the actual Gem files themselves were rather restrictive on permissions - owner read and write only. So I had to go into the directory (/Library/Ruby/Gems/1.8/gems/xml-mapping-0.8.1/
on my Mac) and chmod
the files to 644
and the directories to 755
and then the Gem loads okay.
cd /Library/Ruby/Gems/1.8/gems/xml-mapping-0.8.1/
find . -type d -exec chmod 755 {} ";"
find . -type f -exec chmod 644 {} ";"
Written on 10 Jul 2010 and categorised in CommandLine, NIX, and Ruby, tagged as gemoriginalrequire, Gem, and xml