[英]Error on gem version when installing
I am trying to install the github-pages gem on Ubuntu 14.04. 我正在尝试在Ubuntu 14.04上安装github-pages gem 。
I get this error about the version of a dependency (with or without sudo doesn't change the outcome): 我收到有关依赖项版本的错误(带或不带sudo都不会改变结果):
$ sudo gem2.0 install github-pages
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: github-pages-health-check requires public_suffix (~> 1.4)
However, doing gem2.0 list --local
shows me: 但是,通过
gem2.0 list --local
:
public_suffix (2.0.4)
What's the problem here? 这是什么问题 I have 2 coexisting versions of ruby (ruby1.9.3 and ruby2.0), but I have made
/usr/bin/ruby
link to ruby2.0. 我有2个共存的ruby版本(ruby1.9.3和ruby2.0),但是我已经将
/usr/bin/ruby
链接到ruby2.0。
~>
is a pessimistic version constraint. ~>
是悲观的版本约束。 ~> 1.4
means >= 1.4
and < 2.0
, and your version of public_suffix
is not in that range. ~> 1.4
表示>= 1.4
和< 2.0
,并且您的public_suffix
版本不在该范围内。 Try 尝试
gem install public_suffix -v 1.5.3
which is the newest version that actually satisfies the constraint. 这是实际上满足约束条件的最新版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.