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

Found gbarcode (0.98.16), but was for platform mswin32 #3

Open
jcavalieri opened this issue Jun 25, 2015 · 7 comments
Open

Found gbarcode (0.98.16), but was for platform mswin32 #3

jcavalieri opened this issue Jun 25, 2015 · 7 comments

Comments

@jcavalieri
Copy link

I can't install gbarcode on osx.

Either using this in the gem file:
gem 'gbarcode', '~> 0.98.16'

Or this in the command line:
gem install gbarcode

>> gem install gbarcode
ERROR:  Could not find a valid gem 'gbarcode' (>= 0), here is why:
          Found gbarcode (0.98.16), but was for platform mswin32
ERROR:  Possible alternatives: barcode, rbarcode, barcade, barcoder, barcodes

Could it have been submitted incorrectly to rubygems? Or is the gem only supported on win32?

Thanks,
John

@jcavalieri
Copy link
Author

I should have taken a closer look at the source. Now I see the source is essentially all under a mswin folder:

https://github.com/ahx/gbarcode/tree/ruby1.9/gbarcode-0.98.16-mswin32

What is the windows dependency?

@jcavalieri
Copy link
Author

This SO article has me confused because the person says they installed it on ubuntu, but then references windows.

http://stackoverflow.com/questions/12753024/gbarcode-issue-barcodes-not-being-generated

@ahx
Copy link
Owner

ahx commented Jun 25, 2015

I have never pushed the ruby1.9 branch to rubygems. There is the original gbarcode version on rubygems (https://rubygems.org/gems/gbarcode), but it was never updated by the original author.
You could try to install this fork via git, but I have not tried to install my fork on OSX for years, so I am not sure it that works. Sorry.

@jcavalieri
Copy link
Author

thanks for the suggestions and thanks for the quick response

@ahx
Copy link
Owner

ahx commented Jun 25, 2015

No problem. Maybe you can leave a note here if installing from git does still work these days.

@jcavalieri
Copy link
Author

Hmmm, I tried this and it didn't work for me:

gem 'gbarcode', :git => 'https://github.com/ahx/gbarcode'

Could not find gem 'gbarcode (>= 0) java' in https://github.com/ahx/gbarcode (at
master).
Source does not contain any versions of 'gbarcode (>= 0) java'

But I think this is a problem with our setup because we are using jruby. Looks like a c-extensions issue.

However, I suspect this would work for typical ruby users.

Thanks again for your help.

-John

@jcavalieri
Copy link
Author

Just tried a regular rails app (no jruby)

Could not find gem 'gbarcode (>= 0) ruby' in https://github.com/ahx/gbarcode (at master).
Source does not contain any versions of 'gbarcode (>= 0) ruby'

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

2 participants