安装错误:'rubygems'没有安装候选者

Jas*_*onS 52 rubygems

嗨,我很感激安装rubygems的一些帮助.这是我尝试时会发生的事情.已经安装了"ruby-full".我该如何解决?有什么问题?

$ sudo apt-get install rubygems 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package rubygems is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  ruby

E: Package 'rubygems' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

我正在运行Ubuntu 14.04.安装Ruby版本:1:1.9.3.4.如果有任何其他详细信息可以帮助您解决此问题,请与我们联系.

小智 120

在Ubuntu 14.04中,尝试以下操作:

sudo apt-get install rubygems-integration
Run Code Online (Sandbox Code Playgroud)

  • 非常感谢,这就像一个魅力.似乎我安装的'标准'ruby包中有一些东西阻止我安装rubygems? (2认同)