Ruby Driver
  1. Ruby Driver
  2. RUBY-561

bson_ext C extension not activated after upgrading to bundler 1.3.0 and Ruby 2.0.0

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major - P3 Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL
    • # Replies:
      12
    • Last comment by Customer:
      true

      Description

      After upgrading to Ruby 2.0.0, bundler 1.3.0 and rubygems 2.0.0 I get the following warning when I start my Rails 3 app:

      **Notice: C extension not loaded. This is required for optimum MongoDB Ruby driver performance.
      You can install the extension as follows:
      gem install bson_ext
      If you continue to receive this message after installing, make sure that the
      bson_ext gem is in your load path and that the bson_ext and mongo gems are of the same version.

        Activity

        Hide
        Rodrigo Rosenfeld Rosas
        added a comment -

        Ah, when I look at the extracted gem fro 1.9.3 I see that there is a ext/bson_ext/cbson.so while for 2.0.0 the ".so" extension is missing. I diffed it against cbson.so and it is the same file, just missing the extension. Any ideas why?

        Show
        Rodrigo Rosenfeld Rosas
        added a comment - Ah, when I look at the extracted gem fro 1.9.3 I see that there is a ext/bson_ext/cbson.so while for 2.0.0 the ".so" extension is missing. I diffed it against cbson.so and it is the same file, just missing the extension. Any ideas why?
        Hide
        Rodrigo Rosenfeld Rosas
        added a comment -

        I've also created a ticket in ruby-lang: https://bugs.ruby-lang.org/issues/7971

        Show
        Rodrigo Rosenfeld Rosas
        added a comment - I've also created a ticket in ruby-lang: https://bugs.ruby-lang.org/issues/7971
        Hide
        Brandon Black (Inactive)
        added a comment - - edited

        This issue was resolved in today's update of rubygems version 2.0.2 and I just confirmed that locally. However, you'll need to re-install the gem before the fix will take effect.

        gem update --system
        gem install bson_ext
        
        Show
        Brandon Black (Inactive)
        added a comment - - edited This issue was resolved in today's update of rubygems version 2.0.2 and I just confirmed that locally. However, you'll need to re-install the gem before the fix will take effect. gem update --system gem install bson_ext
        Hide
        Rodrigo Rosenfeld Rosas
        added a comment -

        Thank you for looking into this, Brandon. It worked here as well and that annoying message went away finally

        Show
        Rodrigo Rosenfeld Rosas
        added a comment - Thank you for looking into this, Brandon. It worked here as well and that annoying message went away finally
        Hide
        Brandon Black (Inactive)
        added a comment -

        Awesome. Great to hear. It was driving me crazy too

        Show
        Brandon Black (Inactive)
        added a comment - Awesome. Great to hear. It was driving me crazy too

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              1 year, 6 weeks, 3 days ago
              Date of 1st Reply: