* Issue with kgio and ruby 2.1.2 @ 2014-05-09 23:08 Emmanuel Pinault 2014-05-09 23:51 ` Eric Wong 0 siblings, 1 reply; 4+ messages in thread From: Emmanuel Pinault @ 2014-05-09 23:08 UTC (permalink / raw) To: kgio Hi I upgraded from Ruby 2.1.0 to Ruby 2.1.2 . I have installed rails and unicorn and both of the version of Ruby have the same gem installed… unfortunately I see the following error with 2.1.2.. Works fine with 2.1.0 ruby -Itest /some/minitest/file_test.rb /home/preseed/.gem/ruby/2.1.2/gems/kgio-2.9.2/lib/kgio.rb:21:in `method_defined?': -2.0000000001404037 is not a symbol (TypeError) from /home/preseed/.gem/ruby/2.1.2/gems/kgio-2.9.2/lib/kgio.rb:21:in `require' from /home/preseed/.gem/ruby/2.1.2/gems/kgio-2.9.2/lib/kgio.rb:21:in `<top (required)>' from /home/preseed/.gem/ruby/2.1.2/gems/unicorn-4.8.3/lib/unicorn.rb:6:in `require' from /home/preseed/.gem/ruby/2.1.2/gems/unicorn-4.8.3/lib/unicorn.rb:6:in `<top (required)>' from /home/preseed/.gem/ruby/2.1.2/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `require' from /home/preseed/.gem/ruby/2.1.2/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require' from /home/preseed/.gem/ruby/2.1.2/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `each' from /home/preseed/.gem/ruby/2.1.2/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `block in require' from /home/preseed/.gem/ruby/2.1.2/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `each' from /home/preseed/.gem/ruby/2.1.2/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `require' from /home/preseed/.gem/ruby/2.1.2/gems/bundler-1.5.3/lib/bundler.rb:131:in `require' from /home/preseed/feeder/config/application.rb:12:in `<top (required)>' from /home/preseed/.rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /home/preseed/.rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /home/preseed/feeder/config/environment.rb:2:in `<top (required)>' from /home/preseed/.rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /home/preseed/.rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /home/preseed/feeder/test/test_helper.rb:2:in `<top (required)>' from /home/preseed/.rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_r Thanks Emmanuel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Issue with kgio and ruby 2.1.2 2014-05-09 23:08 Issue with kgio and ruby 2.1.2 Emmanuel Pinault @ 2014-05-09 23:51 ` Eric Wong 2014-05-10 0:05 ` Emmanuel Pinault 0 siblings, 1 reply; 4+ messages in thread From: Eric Wong @ 2014-05-09 23:51 UTC (permalink / raw) To: kgio Emmanuel Pinault <Emmanuel.Pinault@zumobi.com> wrote: > Hi > > I upgraded from Ruby 2.1.0 to Ruby 2.1.2 . I have installed rails and unicorn and both of the version of Ruby have the same gem installed… > > unfortunately I see the following error with 2.1.2.. Works fine with 2.1.0 > > ruby -Itest /some/minitest/file_test.rb > > /home/preseed/.gem/ruby/2.1.2/gems/kgio-2.9.2/lib/kgio.rb:21:in `method_defined?': -2.0000000001404037 is not a symbol (TypeError) Hi, this looks like a binary compatibility problem. The most likely suspect is some build/compiler options changed between when you installed 2.1.0 and today. I just checked Ruby 2.1.2 for accidental ABI changes (by looking for header changes in the include/ directory) but did not find any. I also just upgraded some of my machines without problems. Can you try a clean build + install, perhaps with a different home directory and user? Thanks. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Issue with kgio and ruby 2.1.2 2014-05-09 23:51 ` Eric Wong @ 2014-05-10 0:05 ` Emmanuel Pinault 2014-05-12 17:01 ` Emmanuel Pinault 0 siblings, 1 reply; 4+ messages in thread From: Emmanuel Pinault @ 2014-05-10 0:05 UTC (permalink / raw) To: kgio Ok, I ll give it a try for rebuilding it from scratch . I found that my ruby-install was old and maybe some flag need to be adjusted (and was maybe done already in latest version) By the way, I am running Xubuntu 12.04 on a VM, latest of ruby-install and chruby now and will let you know what I found. Also I was looking at the code where I can only see one place in kgio referring to method_defined? if (!rb_funcall(cFile, rb_intern("method_defined?"), 1, ID2SYM(id_to_path))) rb_define_alias(cFile, "to_path", "path”); thanks Emmanuel On May 9, 2014, at 4:51 PM, Eric Wong <normalperson@yhbt.net> wrote: > Emmanuel Pinault <Emmanuel.Pinault@zumobi.com> wrote: >> Hi >> >> I upgraded from Ruby 2.1.0 to Ruby 2.1.2 . I have installed rails and unicorn and both of the version of Ruby have the same gem installed… >> >> unfortunately I see the following error with 2.1.2.. Works fine with 2.1.0 >> >> ruby -Itest /some/minitest/file_test.rb >> >> /home/preseed/.gem/ruby/2.1.2/gems/kgio-2.9.2/lib/kgio.rb:21:in `method_defined?': -2.0000000001404037 is not a symbol (TypeError) > > Hi, this looks like a binary compatibility problem. > The most likely suspect is some build/compiler options changed > between when you installed 2.1.0 and today. > > I just checked Ruby 2.1.2 for accidental ABI changes (by looking > for header changes in the include/ directory) but did not find any. > I also just upgraded some of my machines without problems. > > Can you try a clean build + install, perhaps with a different home > directory and user? Thanks. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Issue with kgio and ruby 2.1.2 2014-05-10 0:05 ` Emmanuel Pinault @ 2014-05-12 17:01 ` Emmanuel Pinault 0 siblings, 0 replies; 4+ messages in thread From: Emmanuel Pinault @ 2014-05-12 17:01 UTC (permalink / raw) To: kgio I recompiled from scratch and ended up having no issues. But I had to update my version of ruby-install (which was 6 months old I think) Thanks for the help! Emmanuel On May 9, 2014, at 5:05 PM, Emmanuel Pinault <Emmanuel.Pinault@zumobi.com> wrote: > Ok, I ll give it a try for rebuilding it from scratch . I found that my ruby-install was old and maybe some flag need to be adjusted (and was maybe done already in latest version) > > By the way, I am running Xubuntu 12.04 on a VM, latest of ruby-install and chruby now and will let you know what I found. > > Also I was looking at the code where I can only see one place in kgio referring to method_defined? > > if (!rb_funcall(cFile, rb_intern("method_defined?"), 1, > ID2SYM(id_to_path))) > rb_define_alias(cFile, "to_path", "path”); > > thanks > > Emmanuel > > On May 9, 2014, at 4:51 PM, Eric Wong <normalperson@yhbt.net> wrote: > >> Emmanuel Pinault <Emmanuel.Pinault@zumobi.com> wrote: >>> Hi >>> >>> I upgraded from Ruby 2.1.0 to Ruby 2.1.2 . I have installed rails and unicorn and both of the version of Ruby have the same gem installed… >>> >>> unfortunately I see the following error with 2.1.2.. Works fine with 2.1.0 >>> >>> ruby -Itest /some/minitest/file_test.rb >>> >>> /home/preseed/.gem/ruby/2.1.2/gems/kgio-2.9.2/lib/kgio.rb:21:in `method_defined?': -2.0000000001404037 is not a symbol (TypeError) >> >> Hi, this looks like a binary compatibility problem. >> The most likely suspect is some build/compiler options changed >> between when you installed 2.1.0 and today. >> >> I just checked Ruby 2.1.2 for accidental ABI changes (by looking >> for header changes in the include/ directory) but did not find any. >> I also just upgraded some of my machines without problems. >> >> Can you try a clean build + install, perhaps with a different home >> directory and user? Thanks. > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-12 17:01 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-05-09 23:08 Issue with kgio and ruby 2.1.2 Emmanuel Pinault 2014-05-09 23:51 ` Eric Wong 2014-05-10 0:05 ` Emmanuel Pinault 2014-05-12 17:01 ` Emmanuel Pinault
Code repositories for project(s) associated with this public inbox https://yhbt.net/kgio.git/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).