簡體   English   中英

無法安裝rubygems

[英]Can't install 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

我正在運行Ubuntu Studio 14.04。 安裝的Ruby版本:1:1.9.3.4。 請讓我知道是否還有其他其他細節可以幫助解決此問題。

Rubygems是Ruby 1.9本身的一部分。 因此,您無需單獨安裝它,而您已經安裝了它。 這樣,“舊” ruby​​gems軟件包現在要么是虛擬軟件包,要么簡單地由ruby軟件包(或更具體地說,由Trusty中的ruby1.9.1軟件包)提供。

tl; dr是:如果已安裝ruby1.9.1 ,則說明您已經安裝了rubygems,不需要任何其他軟件包。

我建議使用Rbenv代替RVM https://github.com/sstephenson/rbenv

sudo apt-get install rubygems-integration

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM