Issue #9106 has been updated by nagachika (Tomoyuki Chikanaga).

Status changed from Closed to Assigned


----------------------------------------
Bug #9106: 'gem install' doesn't copy .so files of ext libs
https://bugs.ruby-lang.org/issues/9106#change-43160

Author: tagomoris (Satoshi TAGOMORI)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: 
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-11-12 trunk 43653) [x86_64-linux]
Backport: 1.9.3: DONTNEED, 2.0.0: DONTNEED


'gem install' should copy files of 'ext/**/*.so' of each installed gems, but doesn't.
 
 $ ruby -v
 ruby 2.1.0dev (2013-11-12 trunk 43653) [x86_64-linux]
 $ gem install msgpack
 Fetching: msgpack-0.5.7.gem (100%)
 Building native extensions.  This could take a while...
 Successfully installed msgpack-0.5.7
 
 []
 
 Parsing documentation for msgpack-0.5.7
 Installing ri documentation for msgpack-0.5.7
 Done installing documentation for msgpack after 0 seconds
 1 gem installed
 $ ruby -rmsgpack -e ''
 /home/user/local/ruby-2.1.0-trunk/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- /home/user/local/ruby-2.1.0-trunk/lib/ruby/gems/2.1.0/gems/msgpack-0.5.7/lib/msgpack/msgpack (LoadError)
 from /home/user/local/ruby-2.1.0-trunk/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
 from /home/user/local/ruby-2.1.0-trunk/lib/ruby/gems/2.1.0/gems/msgpack-0.5.7/lib/msgpack.rb:8:in `rescue in <top (required)>'
 from /home/user/local/ruby-2.1.0-trunk/lib/ruby/gems/2.1.0/gems/msgpack-0.5.7/lib/msgpack.rb:3:in `<top (required)>'
 from /home/user/local/ruby-2.1.0-trunk/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
 from /home/user/local/ruby-2.1.0-trunk/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
 from /home/user/local/ruby-2.1.0-trunk/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
 $ ls -l local/ruby-2.1.0-trunk/lib/ruby/gems/2.1.0/gems/msgpack-0.5.7/lib/msgpack
 total 4
 -rw-r--r-- 1 edge-dev edge 42 Nov 13 15:43 version.rb
 $ ls -l local/ruby-2.1.0-trunk/lib/ruby/gems/2.1.0/gems/msgpack-0.5.7/ext/msgpack/msgpack.so 
 -rwxr-xr-x 1 edge-dev edge 1390955 Nov 13 15:43 local/ruby-2.1.0-trunk/lib/ruby/gems/2.1.0/gems/msgpack-0.5.7/ext/msgpack/msgpack.so
 


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