简体   繁体   English

安装假日宝石时出错

[英]Error installing holidays gem

I'm receiving the following error when trying to install the holidays gem: 我在尝试安装假日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. 我不是一个红宝石家伙,只是为Redmine Backlogs插件安装了一些deps。

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

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 1.0.4似乎要求您拥有以前版本的gem,所以这样做你应该很好

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 更新:作者Alex Dunae现在解决了这个问题

宝石作者在这里 - 这最终得到了解决。

It seems 1.0.4 is broken. 似乎1.0.4被打破了。 1.0.3 installs nicely - try gem install holidays -v 1.0.3 1.0.3安装很好 - 尝试gem install holidays -v 1.0.3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM