Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

Install ruby1.9 branch using bundler #1

Open
luckydev opened this issue Mar 14, 2011 · 5 comments
Open

Install ruby1.9 branch using bundler #1

luckydev opened this issue Mar 14, 2011 · 5 comments

Comments

@luckydev
Copy link

In my Gemfile, if I give,

gem "gbarcode", :git => "git://github.com/ahaller/gbarcode.git", :ref => "ruby1.9"

Bundler throws me error like this,

Could not find gem 'gbarcode (>= 0, runtime)' in git://github.com/ahaller/gbarcode.git (at ruby1.9).
Source does not contain any versions of 'gbarcode (>= 0, runtime)'

what should I do to install gbarcode using bundler

@miloops
Copy link

miloops commented Mar 14, 2011

I also had this problem. You can work around it by adding to your gemfile:

gem 'gbarcode', '0.98'

Then installing it manually:

$ git clone https://github.com/ahaller/gbarcode.git
$ cd gbarcode/
$ rake gem
$ gem install pkg/gbarcode-0.98.gem

Anyway, +1 to add a gemspec and fix this :=)

@luckydev
Copy link
Author

gemspec please..

@pauldruziak
Copy link

+1

@sindhuk
Copy link

sindhuk commented Jul 3, 2012

https://github.com/ahaller/gbarcode.git this link is not working now ..and the problem is that i dont have git installed in my system .can you please tell me another way clear this problem .
i am getting the error like

Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing gbarcode:
ERROR: Failed to build gem native extension.

    C:/Ruby192/bin/ruby.exe extconf.rb --with-barcode-dir=\D:\rails3\bcgener

ator\vendor\plugins
checking for main() in -lbarcode... no
*** 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=C:/Ruby192/bin/ruby
--with-barcode-dir
--with-barcode-include
--without-barcode-include=${barcode-dir}/include
--with-barcode-lib
--without-barcode-lib=${barcode-dir}/lib
--with-barcodelib
--without-barcodelib
extconf.rb:10:in `

': GNU Barcode is no longer bundled with the gbarcode ge
m. Please install GNU barcode before installing this gem (Exception)

Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/gbarcode-
0.98.20 for inspection.
Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/gbarcode-0.98.20/ext/gem_m
ake.out

@craigmonson
Copy link

+1 for gemspec

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants