Uploaded platform gem causes wrong gem to download

Kyle's Avatar

Kyle

05 Jan, 2011 05:40 PM

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

  1. 1 Posted by Kyle on 05 Jan, 2011 05:57 PM

    Kyle's Avatar

    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:

    ERROR: Failed to build gem native extension.
    

    /home/kyle/.rvm/rubies/jruby-1.5.6/bin/jruby extconf.rb WARNING: JRuby does not support native extensions or the `mkmf' library.

         Check http://kenai.com/projects/jruby/pages/Home for alternatives.
    

    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?

  2. 2 Posted by Kyle on 06 Jan, 2011 03:31 AM

    Kyle's Avatar

    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.

  3. Support Staff 3 Posted by Nick Quaranto on 18 Jan, 2011 03:49 AM

    Nick Quaranto's Avatar

    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+ ?

  4. 4 Posted by Kyle on 18 Jan, 2011 05:01 PM

    Kyle's Avatar

    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.

  5. Nick Quaranto closed this discussion on 29 Jan, 2011 07:31 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

23 Oct, 2014 05:37 PM
21 Oct, 2014 10:47 AM
18 Oct, 2014 08:39 PM
16 Oct, 2014 12:41 PM
06 Oct, 2014 02:30 PM