Error installing holidays gem
Asked Answered
B

3

9

I'm receiving the following error when trying to install the holidays gem:

# gem install holidays
Fetching: holidays-1.0.4.gem (100%)
ERROR:  Error installing holidays:
        holidays requires holidays (>= 0)

I'm not a ruby guy, just installing some deps for Redmine Backlogs plugin.

Versions and environment:

# gem -v
1.8.10

# ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [i386-linux]

CentOS Linux release 6.0 (Final)
# uname -r
2.6.32-71.29.1.el6.i686
Bluegill answered 21/10, 2011 at 11:45 Comment(0)
W
16

The latest version of the gem 1.0.4 seems to require that you have a previous version of the gem so do this and you should be good

gem install holidays --version 1.0.3
gem install holidays

Now you should have the latest version of the holidays gem

UPDATE: The author Alex Dunae has now fixed this problem

Wisconsin answered 21/10, 2011 at 12:12 Comment(2)
Thank you! I've been in the gem page (code.dunae.ca/holidays) but I can't find any reason for the behavior you described, can you explain it to the community and therefor to me.Bluegill
I can't explain it either so I've opened an issue for it on Github [github.com/alexdunae/holidays/issues/13]Wisconsin
P
5

Gem author here -- this is finally fixed.

Pacificism answered 13/3, 2012 at 6:25 Comment(0)
H
1

It seems 1.0.4 is broken. 1.0.3 installs nicely - try gem install holidays -v 1.0.3

Hat answered 21/10, 2011 at 11:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.