gbarcode
gbarcode copied to clipboard
Install ruby1.9 branch using bundler
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
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 :=)
gemspec please..
+1
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 `
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
+1 for gemspec