[RCBC-81] Unable to gem install couchbase Created: 17/Sep/12  Updated: 13/Nov/12  Resolved: 17/Sep/12

Status: Closed
Project: Couchbase Ruby client library
Component/s: library
Affects Version/s: 1.1.4
Fix Version/s: 1.1.5, 1.2.0.z.beta
Security Level: Public

Type: Bug Priority: Major
Reporter: Karan Kumar (Inactive) Assignee: Sergey Avseyev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Centos 6.2


 Description   
[root@cen-1908 ~]# ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
[root@cen-1908 ~]# gem --version
1.8.10

Followed the instructions listed here:-
https://github.com/couchbase/couchbase-ruby-client



[root@cen-1908 ~]# gem install couchbase
Building native extensions. This could take a while...
......
ERROR: Error installing couchbase:
ERROR: Failed to build gem native extension.

        /usr/bin/ruby extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-libcouchbase-dir
--without-libcouchbase-dir
--with-libcouchbase-include
--without-libcouchbase-include=${libcouchbase-dir}/include
--with-libcouchbase-lib
--without-libcouchbase-lib=${libcouchbase-dir}/lib
extconf.rb:86: undefined method `<<' for nil:NilClass (NoMethodError)


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/couchbase-1.1.4 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/couchbase-1.1.4/ext/couchbase_ext/gem_make.out

 Comments   
Comment by Sergey Avseyev [ 17/Sep/12 ]
Could you also attach /usr/lib/ruby/gems/1.8/gems/couchbase-1.1.4/ext/couchbase_ext/gem_make.out ?
Comment by Karan Kumar (Inactive) [ 17/Sep/12 ]
gem_make.out

/usr/bin/ruby extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/ruby
        --with-libcouchbase-dir
        --without-libcouchbase-dir
        --with-libcouchbase-include
        --without-libcouchbase-include=${libcouchbase-dir}/include
        --with-libcouchbase-lib
        --without-libcouchbase-lib=${libcouchbase-dir}/lib
extconf.rb:86: undefined method `<<' for nil:NilClass (NoMethodError)
Generated at Sun Apr 20 20:43:22 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.