gbarcode icon indicating copy to clipboard operation
gbarcode copied to clipboard

Install ruby1.9 branch using bundler

Open luckydev opened this issue 13 years ago • 5 comments

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

luckydev avatar Mar 14 '11 10:03 luckydev

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 :=)

miloops avatar Mar 14 '11 13:03 miloops

gemspec please..

luckydev avatar Mar 14 '11 13:03 luckydev

+1

pauldruziak avatar Apr 08 '11 16:04 pauldruziak

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

sindhuk avatar Jul 03 '12 13:07 sindhuk

+1 for gemspec

craigmonson avatar Aug 08 '12 13:08 craigmonson