Issue #7897 has been updated by mrkn (Kenta Murata).


The following patch fixes this problem.

diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index 0865a6d..b8a6d2b 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -672,6 +672,7 @@ TEXT

       begin
         Dir.chdir extension_dir do
+          FileUtils.mkdir_p(dest_path)
           results = builder.build(extension, gem_dir, dest_path,
                                   results, @build_args)

----------------------------------------
Bug #7897: rubygems 2.0 has an incompatibility about installation of extension libraries if gem package does not contain lib directory
https://bugs.ruby-lang.org/issues/7897#change-36704

Author: mrkn (Kenta Murata)
Status: Open
Priority: Urgent
Assignee: drbrain (Eric Hodel)
Category: lib
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-08 trunk 39161) [x86_64-darwin11.4.2]


Hi,

rubygems 2.0 has an incompatibility about installation of extension libraries.

If a gem package does not contain lib directory,
an extension library file is copied as a file named "lib".

You can reproduce this problem by installing msgpack version 0.4.7.



-- 
http://bugs.ruby-lang.org/