gpt4 book ai didi

ruby - 无法安装 ruby​​gems

转载 作者:行者123 更新时间:2023-12-04 19:19:54 25 4
gpt4 key购买 nike

嗨,我将不胜感激安装 ruby​​gems 的一些帮助。这就是我尝试时发生的情况。 “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

我正在运行 Ubuntu Studio 14.04。安装的 Ruby 版本:1:1.9.3.4。如果还有其他可以帮助解决此问题的其他详细信息,请告诉我。

最佳答案

Rubygems 是 Ruby 1.9 本身的一部分。因此,无需单独安装,您已经安装了它。因此,“旧”的 ruby​​gems 包现在要么是一个虚拟包,要么只是由 ruby​​ 包提供(或者更具体地说是由 Trusty 中的 ruby1.9.1 包提供)。

tl;博士是:如果你有 ruby1.9.1安装,你已经安装了 ruby​​gems,不需要任何额外的包。

关于ruby - 无法安装 ruby​​gems,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24030456/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com