Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of the gem fails #2

Closed
assimovt opened this issue Oct 6, 2014 · 4 comments
Closed

Installation of the gem fails #2

assimovt opened this issue Oct 6, 2014 · 4 comments

Comments

@assimovt
Copy link

assimovt commented Oct 6, 2014

Redis backend for Git - sounds interesting :) Tried to bundle install, but looks like its not in Rubygems, also tried to install against this Git repository with no success. Hints?

@charypar
Copy link
Member

charypar commented Oct 8, 2014

It's not in rubygems yet, because the support for it isn't in mainline rugged yet (there is a bit of a dependency chain, see pull requests for rugged and for libgit2 backends).

Can you post a copy of bundle install errors? I may be able to help. One reason for failure I know about is the inter-gem binary dependency (rugged-redis needs to link to rugged and also include rugged's header file), which prevents parallel bundle install with --jobs=[x].

@assimovt
Copy link
Author

assimovt commented Oct 8, 2014

Yep, I have noticed its not in Rubygems and also checked the mentioned pull requests. I am trying against your repos though. Here is my Gemfile and the output of bundle install. Cheers!

source 'http://rubygems.org'

gem 'rugged', github: 'redbadger/rugged', branch: 'backends'
gem 'rugged-redis', github: 'redbadger/rugged-redis'
$ bundle
Fetching git://github.com/redbadger/rugged.git
Updating git://github.com/redbadger/rugged-redis.git
Fetching gem metadata from http://rubygems.org/.........
Resolving dependencies...

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /usr/local/opt/rbenv/versions/2.1.2/bin/ruby extconf.rb
checking for gmake... no
checking for make... yes
checking for cmake... yes
checking for pkg-config... yes
 -- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo
*** 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/local/opt/rbenv/versions/2.1.2/bin/ruby
    --use-system-libraries
extconf.rb:13:in `sys': ERROR: 'cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo' failed (RuntimeError)
    from extconf.rb:50:in `block (2 levels) in <main>'
    from extconf.rb:49:in `chdir'
    from extconf.rb:49:in `block in <main>'
    from extconf.rb:46:in `chdir'
    from extconf.rb:46:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /usr/local/opt/rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rugged-3854d1a2c4ea for inspection.
Results logged to /usr/local/opt/rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/extensions/x86_64-darwin-13/2.1.0-static/rugged-3854d1a2c4ea/gem_make.out
An error occurred while installing rugged (0.21.1b0), and Bundler cannot continue.

@charypar
Copy link
Member

Ah, I think you may be missing the git submodules. Try this in your Gemfile:

gem 'rugged', git: 'https://github.com/redbadger/rugged', branch: 'backends', submodules: true
gem 'rugged-redis', git: 'https://github.com/redbadger/rugged-redis', tag: 'v0.1.1', submodules: true

Thanks for spotting this, I need to update the readme to say the correct thing. Let me know if this worked.

@haines
Copy link
Contributor

haines commented May 15, 2017

rugged-redis is now installable from Rubygems 🎉

@haines haines closed this as completed May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants