Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-82

gem install couchbase --pre on OSX 10.8.1 with Ruby 1.9.3-p194

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.2.0.dp6
    • Fix Version/s: 1.2.0.z.beta2
    • Component/s: None
    • Security Level: Public
    • Labels:
      None
    • Environment:
      ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.1.0]
      Rails 3.2.6
      Mac OS X 10.8.1

      Description

      brew install https://raw.github.com/couchbase/homebrew/preview/Library/Formula/libcouchbase.rb

      patrick$ gem install couchbase --pre
      Building native extensions. This could take a while...
      ERROR: Error installing couchbase:
      ERROR: Failed to build gem native extension.

      /Users/patrick/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
      extconf.rb:25:in `block in <main>': uninitialized constant RbConfig::ARCHFLAGS (NameError)
      from extconf.rb:24:in `each'
      from extconf.rb:24:in `<main>'

      Gem files will remain installed in /Users/patrick/.rvm/gems/ruby-1.9.3-p194/gems/couchbase-1.2.0.z.beta for inspection.
      Results logged to /Users/patrick/.rvm/gems/ruby-1.9.3-p194/gems/couchbase-1.2.0.z.beta/ext/couchbase_ext/gem_make.out

        Issue Links

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          Pathe Patrick added a comment -

          Gem installed. Everything good! Thanks a lot!

          Show
          Pathe Patrick added a comment - Gem installed. Everything good! Thanks a lot!
          Hide
          Pathe Patrick added a comment -

          ruby extconf.rb executes correctly. Just trying to install the gem.

          Show
          Pathe Patrick added a comment - ruby extconf.rb executes correctly. Just trying to install the gem.
          Hide
          avsej Sergey Avseyev added a comment -

          Of course you should make this change before running ruby extconf.rb

          http://review.couchbase.org/#/c/20959/1/ext/couchbase_ext/extconf.rb

          Show
          avsej Sergey Avseyev added a comment - Of course you should make this change before running ruby extconf.rb http://review.couchbase.org/#/c/20959/1/ext/couchbase_ext/extconf.rb
          Hide
          avsej Sergey Avseyev added a comment -

          The fix http://review.couchbase.org/20959

          Patrick, could you verify all is working?

          cd /Users/patrick/.rvm/gems/ruby-1.9.3-p194/gems/couchbase-1.2.0.z.beta/ext/couchbase_ext
          ruby extconf.rb
          make

          it should build without errors, if so just let me know and I will roll another version

          Show
          avsej Sergey Avseyev added a comment - The fix http://review.couchbase.org/20959 Patrick, could you verify all is working? cd /Users/patrick/.rvm/gems/ruby-1.9.3-p194/gems/couchbase-1.2.0.z.beta/ext/couchbase_ext ruby extconf.rb make it should build without errors, if so just let me know and I will roll another version
          Hide
          avsej Sergey Avseyev added a comment -

          I guess I know that the problem in that the RVM doesn't build fat binary for ruby, there fore I should check for defined?(RbConfig::ARCHFLAGS) in the extconf.rb. But I'd like to make sure

          Show
          avsej Sergey Avseyev added a comment - I guess I know that the problem in that the RVM doesn't build fat binary for ruby, there fore I should check for defined?(RbConfig::ARCHFLAGS) in the extconf.rb. But I'd like to make sure
          Hide
          avsej Sergey Avseyev added a comment -

          Could you attach your rbconfig.rb from your ruby installation?

          Show
          avsej Sergey Avseyev added a comment - Could you attach your rbconfig.rb from your ruby installation?

            People

            • Assignee:
              avsej Sergey Avseyev
              Reporter:
              Pathe Patrick
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes