I don't understand this error I receive when I run bundle install
:
我不明白运行bundle install时收到的这个错误:
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.0) was resolved to 3.0.0, which depends on
bundler (~> 1.0.0)
Current Bundler version:
bundler (1.16.2)
This Gemfile requires a different version of Bundler.
If I have bundler version 1.16.2
, why is it not considered to meet the ~> 1.0.0
criteria?
如果我有捆绑版本1.16.2,为什么不考虑满足〜> 1.0.0标准?
1 个解决方案
#1
2
The ~>
notation allows for the delineation of the incrementation whereby the least significant digit is allowed to differ from the specification.
〜>表示法允许描绘增量,从而允许最低有效数字与规范不同。
So in this case ~> 1.0.0
means any version that is >= 1.0.0 and < 1.1.
所以在这种情况下〜> 1.0.0表示任何版本> = 1.0.0且<1.1。
However a notation of ~> 1.0
would mean any version >= 1.0 and < 2.0
但是,〜> 1.0的符号表示任何版本> = 1.0且<2.0
In your case 1.16.2
is clearly greater than 1.1
and thus fails the requirement set forth
在你的情况下,1.16.2明显大于1.1,因此未达到规定的要求
#1
2
The ~>
notation allows for the delineation of the incrementation whereby the least significant digit is allowed to differ from the specification.
〜>表示法允许描绘增量,从而允许最低有效数字与规范不同。
So in this case ~> 1.0.0
means any version that is >= 1.0.0 and < 1.1.
所以在这种情况下〜> 1.0.0表示任何版本> = 1.0.0且<1.1。
However a notation of ~> 1.0
would mean any version >= 1.0 and < 2.0
但是,〜> 1.0的符号表示任何版本> = 1.0且<2.0
In your case 1.16.2
is clearly greater than 1.1
and thus fails the requirement set forth
在你的情况下,1.16.2明显大于1.1,因此未达到规定的要求