[RCBC-82] gem install couchbase --pre on OSX 10.8.1 with Ruby 1.9.3-p194 Created: 19/Sep/12  Updated: 13/Nov/12  Resolved: 19/Sep/12

Status: Closed
Project: Couchbase Ruby client library
Component/s: None
Affects Version/s: 1.2.0.dp6
Fix Version/s: 1.2.0.z.beta2
Security Level: Public

Type: Bug Priority: Blocker
Reporter: Patrick Assignee: Sergey Avseyev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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

Issue Links:
Duplicate
is duplicated by RCBC-83 gem install couchbase fails Closed

 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

 Comments   
Comment by Sergey Avseyev [ 19/Sep/12 ]
Could you attach your rbconfig.rb from your ruby installation?
Comment by Sergey Avseyev [ 19/Sep/12 ]
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
Comment by Sergey Avseyev [ 19/Sep/12 ]
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
Comment by Sergey Avseyev [ 19/Sep/12 ]
Of course you should make this change before running ruby extconf.rb

http://review.couchbase.org/#/c/20959/1/ext/couchbase_ext/extconf.rb
Comment by Patrick [ 19/Sep/12 ]
ruby extconf.rb executes correctly. Just trying to install the gem.
Comment by Patrick [ 19/Sep/12 ]
Gem installed. Everything good! Thanks a lot!




Generated at Fri Aug 22 20:43:59 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.