Forum: Ruby-core [ruby-trunk - Bug #9106][Open] 'gem install' doesn't copy .so files of ext libs

002525eada5741b7954ce22c1a066d32?d=identicon&s=25 tagomoris (Satoshi TAGOMORI) (Guest)
on 2013-11-13 07:50
(Received via mailing list)
Issue #9106 has been reported by tagomoris (Satoshi TAGOMORI).

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

Author: tagomoris (Satoshi TAGOMORI)
Status: Open
Priority: Immediate
Assignee:
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: UNKNOWN, 2.0.0: UNKNOWN


'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
C4f076f658dd3464f1d8785ad53a0d99?d=identicon&s=25 sorah (Shota Fukumori) (Guest)
on 2013-11-13 08:31
(Received via mailing list)
Issue #9106 has been updated by sorah (Shota Fukumori).

Status changed from Open to Assigned
Assignee set to drbrain (Eric Hodel)

Eric, could you handle this?
----------------------------------------
Bug #9106: 'gem install' doesn't copy .so files of ext libs
https://bugs.ruby-lang.org/issues/9106#change-42899

Author: tagomoris (Satoshi TAGOMORI)
Status: Assigned
Priority: Immediate
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: UNKNOWN, 2.0.0: UNKNOWN


'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
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 drbrain (Eric Hodel) (Guest)
on 2013-11-14 00:01
(Received via mailing list)
Issue #9106 has been updated by drbrain (Eric Hodel).

Priority changed from Immediate to Normal

Yes, I will investigate.
----------------------------------------
Bug #9106: 'gem install' doesn't copy .so files of ext libs
https://bugs.ruby-lang.org/issues/9106#change-42912

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: UNKNOWN, 2.0.0: UNKNOWN


'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
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 drbrain (Eric Hodel) (Guest)
on 2013-11-14 00:03
(Received via mailing list)
Issue #9106 has been updated by drbrain (Eric Hodel).


=begin
Ugh.  This is a misfeature of msgpack, it should trust that RubyGems
will do the right thing:

  here = File.expand_path(File.dirname(__FILE__))
  require File.join(here, 'msgpack', 'version')
  begin
    m = /(\d+.\d+)/.match(RUBY_VERSION)
    ver = m[1]
    require File.join(here, 'msgpack', ver, 'msgpack')
  rescue LoadError
    require File.join(here, 'msgpack', 'msgpack')
  end

=end

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

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: UNKNOWN, 2.0.0: UNKNOWN


'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
Eabad423977cfc6873b8f5df62b848a6?d=identicon&s=25 hsbt (Hiroshi SHIBATA) (Guest)
on 2013-11-15 02:12
(Received via mailing list)
Issue #9106 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Assigned to Feedback

tagomoris: Thank you for your report. Can you investigate to msgpack
gem?
----------------------------------------
Bug #9106: 'gem install' doesn't copy .so files of ext libs
https://bugs.ruby-lang.org/issues/9106#change-42945

Author: tagomoris (Satoshi TAGOMORI)
Status: Feedback
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: UNKNOWN, 2.0.0: UNKNOWN


'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
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 drbrain (Eric Hodel) (Guest)
on 2013-11-15 06:25
(Received via mailing list)
Issue #9106 has been updated by drbrain (Eric Hodel).

Status changed from Feedback to Assigned
Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: DONTNEED,
2.0.0: DONTNEED

For backwards compatibility I will need to alter RubyGems before Ruby
2.1 (I haven't had time yet).

Future versions of RubyGems will not support this lack of trust, though.
----------------------------------------
Bug #9106: 'gem install' doesn't copy .so files of ext libs
https://bugs.ruby-lang.org/issues/9106#change-42950

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
002525eada5741b7954ce22c1a066d32?d=identicon&s=25 tagomoris (Satoshi TAGOMORI) (Guest)
on 2013-11-15 09:26
(Received via mailing list)
Issue #9106 has been updated by tagomoris (Satoshi TAGOMORI).


hsbt (Hiroshi SHIBATA) wrote:
> tagomoris: Thank you for your report. Can you investigate to msgpack gem?

I don't understand why msgpack requires with such code. So I'll tell it
to @frsyuki, original developer of msgpack.

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

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
Aba3c1870b6cea67493617e5a343b586?d=identicon&s=25 frsyuki (Sadayuki Furuhashi) (Guest)
on 2013-11-15 11:36
(Received via mailing list)
Issue #9106 has been updated by frsyuki (Sadayuki Furuhashi).


Hi I'm @frsyuki.
1) I don't understand which behavior of RubyGems should the code trust.
It assumes that msgpack.so is placed into lib/msgpack/msgpack.so because
ext/msgpack/extconf.rb includes this line:
    create_makefile('msgpack/msgpack')

2) Which fix is appropriate?:
a) require File.join(here, '..', 'ext', 'msgpack', 'msgpack')
b) add "ext" directory to require_paths in gemspec
c) require "msgpack/msgpack"
d) require "msgpack#{RbConfig::CONFIG["DLEXT"]}"

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

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
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 drbrain (Eric Hodel) (Guest)
on 2013-11-15 22:39
(Received via mailing list)
Issue #9106 has been updated by drbrain (Eric Hodel).


=begin
@frsyuki: you should trust rubygems to make msgpack/msgpack.so
accessible somewhere in the $LOAD_PATH so:

  require 'msgpack/msgpack'

so option c is the best fix.

With RubyGems 2.2 the directory you `gem install` to can be shared
across multiple ruby versions because the extensions end up in
$GEM_HOME/extensions/<platform>/<ruby API version>/<gem name and
version>.  RubyGems will add that directory to $LOAD_PATH so require can
find files in it.

For msgpack, on OS X with ruby 2.1.0 this would be:

  $GEM_HOME/extensions/x86_64-darwin-12/2.0.0/msgpack-0.5.7/msgpack/msgpack.bundle

I will figure out a backward compatible solution so older msgpack will
still work for RubyGems 2.x.  There is no reason for you to rush out a
new release of msgpack.
=end

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

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
Aba3c1870b6cea67493617e5a343b586?d=identicon&s=25 frsyuki (Sadayuki Furuhashi) (Guest)
on 2013-11-16 04:08
(Received via mailing list)
Issue #9106 has been updated by frsyuki (Sadayuki Furuhashi).


It sounds good improvement of RubyGems to manage binaries for each ruby
API versions.
Your comment totally makes sense. I'll fix msgpack next version. Thank
you!
----------------------------------------
Bug #9106: 'gem install' doesn't copy .so files of ext libs
https://bugs.ruby-lang.org/issues/9106#change-42972

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
E7cff3cfd41c495e1012227d7dc24202?d=identicon&s=25 Luis Lavena (luislavena)
on 2013-11-16 16:55
(Received via mailing list)
Issue #9106 has been updated by luislavena (Luis Lavena).


Hello,

Here is a 2009 discussion about gems and multiple binaries (targeting
different versions of Ruby):

http://rubyforge.org/pipermail/rubygems-developers...

My alternative to that issue is what you can see in projects like
sqlite3-ruby:

https://github.com/sparklemotion/sqlite3-ruby/blob...

And others that follow the guidelines of rake-compiler to deal with
these multiple binaries in a single gem.

Of course, this is to deal with gems that package binaries, gems that
are compiled on installation, we let RubyGems do its job.
----------------------------------------
Bug #9106: 'gem install' doesn't copy .so files of ext libs
https://bugs.ruby-lang.org/issues/9106#change-42976

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
002525eada5741b7954ce22c1a066d32?d=identicon&s=25 tagomoris (Satoshi TAGOMORI) (Guest)
on 2013-11-26 07:06
(Received via mailing list)
Issue #9106 has been updated by tagomoris (Satoshi TAGOMORI).


This problem is reproduced on ruby 2.1.0-preview2 on Linux/OSX.
'msgpack' gem cannot be loaded (LoadError) and 'ext/msgpack/msgpack.so'
(or .bundle) is not copied to 'lib/msgpack/msgpack.so'.
About other library (ex: cool.io), binary files are copied to 'lib'
directory.

P.S. I cannot reopen this ticket.

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

Author: tagomoris (Satoshi TAGOMORI)
Status: Closed
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
5cf8f058a4c094bb708174fb43e7a387?d=identicon&s=25 nagachika (Tomoyuki Chikanaga) (Guest)
on 2013-11-26 07:08
(Received via mailing list)
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
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 drbrain (Eric Hodel) (Guest)
on 2013-11-27 04:42
(Received via mailing list)
Issue #9106 has been updated by drbrain (Eric Hodel).


Hrm, I will check it.
----------------------------------------
Bug #9106: 'gem install' doesn't copy .so files of ext libs
https://bugs.ruby-lang.org/issues/9106#change-43192

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
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 drbrain (Eric Hodel) (Guest)
on 2013-12-01 00:38
(Received via mailing list)
Issue #9106 has been updated by drbrain (Eric Hodel).


I found my bug!

I didn't recursively copy the files.

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

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
This topic is locked and can not be replied to.