XML-Mapping gem has permission problem

 

You may have this error when require ‘xml/mapping’ in your ruby script:

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- xml/mapping (LoadError)

Solution: go to the gem directory of XML-Mapping (mine is /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/) and chmod all files in this directory to 644.

Who is to point finger at here ? Rubygem or XML-Mapping authors ?

Related posts:

  • http://justkez.com kez

    Thanks for the post – saved me much frustration.

  • andrewmcdonough

    Thanks for this. I'd been trying to work out what was going on for about 20 mins. I found chmod 755 * in this directory fixed it for me:

    {GEMS_ROOT}/xml-mapping-0.8.1/lib/xml