Uploaded platform gem causes wrong gem to download
Hi,
I just released the following gems:
bson-1.2.rc1
bson-1.2.rc1-java
bson_ext-1.2.rc1
Now, when I run
gem install bson
Gem always attempts to install bson_ext. Why would this be? Am I doing something wrong or is there a bug here? This should be easy to replicate on your end.
Thanks,
Kyle
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Kyle on 05 Jan, 2011 05:57 PM
Here's some more info:
If I install mongo, which depend on bson, then the install progress correctly:
[kyle@ubuntu ruby-driver$]$ gem install mongo Successfully installed bson-1.2.rc1-java
Successfully installed mongo-1.2.rc1
2 gems installed
Installing ri documentation for bson-1.2.rc1-java...
Installing ri documentation for mongo-1.2.rc1...
Installing RDoc documentation for bson-1.2.rc1-java...
Installing RDoc documentation for mongo-1.2.rc1...
But if I just try installing bson by itself, notice that it attempts to install bson_ext.
[kyle@ubuntu ruby-driver$]$ gem install bson Building native extensions. This could take a while...
ERROR: Error installing bson:
/home/kyle/.rvm/rubies/jruby-1.5.6/bin/jruby extconf.rb WARNING: JRuby does not support native extensions or the `mkmf' library.
extconf.rb:3: undefined method `have_func' for main:Object (NoMethodError)
Gem files will remain installed in /home/kyle/.rvm/gems/jruby-1.5.6/gems/bson_ext-1.2.rc1 for inspection.
Results logged to /home/kyle/.rvm/gems/jruby-1.5.6/gems/bson_ext-1.2.rc1/ext/cbson/gem_make.out
The same happens on other platforms:
[kyle@ubuntu ruby-driver$]$ rvm 1.8.7 [kyle@ubuntu ruby-driver$]$ gem install bson Building native extensions. This could take a while...
Successfully installed bson_ext-1.2.rc1
1 gem installed
Bizarre, right?
3 Posted by Kyle on 06 Jan, 2011 03:31 AM
Hmm. Strangely enough, this does seem to be working okay on a different machine. Not sure what to make of it, but we can probably close this for now.
Support Staff 4 Posted by Nick Quaranto on 18 Jan, 2011 03:49 AM
Hey Kyle, sorry about the delayed response here.
Pretty much all of the indexes get updated at the same time, not sure how this would happen. Was this happening on RG 1.4+ ?
5 Posted by Kyle on 18 Jan, 2011 05:01 PM
Thanks, Nich. It was with 1.3.6. But I haven't seen the issue crop up again, so I believe we can consider this resolved.
Nick Quaranto closed this discussion on 29 Jan, 2011 07:31 PM.