Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-551

bson-ext fails to compile on ruby-2.0-rc2

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      sudo gem install bson_ext -v '1.8.2'
      Building native extensions. This could take a while...
      ERROR: Error installing bson_ext:
      ERROR: Failed to build gem native extension.

      /usr/bin/ruby extconf.rb
      checking for asprintf()... yes
      checking for ruby/st.h... yes
      checking for ruby/regex.h... yes
      checking for ruby/encoding.h... yes
      creating Makefile

      make
      compiling cbson.c
      cbson.c: In function ‘write_element’:
      cbson.c:316:17: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
      compiling encoding_helpers.c
      compiling bson_buffer.c
      linking shared-object bson_ext/cbson.so

      make install
      /usr/bin/install -c -m 0755 cbson.so /usr/lib/ruby/gems/2.0.0/gems/bson_ext-1.8.2/ext/bson_ext/bson_ext
      /usr/bin/install: cannot create regular file ‘/usr/lib/ruby/gems/2.0.0/gems/bson_ext-1.8.2/ext/bson_ext/bson_ext’: No such file or directory
      make: *** [install-so] Error 1

      Gem files will remain installed in /usr/lib/ruby/gems/2.0.0/gems/bson_ext-1.8.2 for inspection.
      Results logged to /usr/lib/ruby/gems/2.0.0/gems/bson_ext-1.8.2/ext/cbson/gem_make.out

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            speed Blaz Hrastnik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: