2012-01-31 142 views
7

RVM通過正確安裝: 命令和apt-get安裝紅寶石RVM在Ubuntu 11.10安裝Ruby-RVM紅寶石1.9.3

當我嘗試安裝Ruby 1.9.3我得到這些錯誤?

[email protected]:~$ rvm install 1.9.3 
mkdir: cannot create directory `/usr/share/ruby-rvm/gems/ruby-1.9.3-p0': Permission  denied 
Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)... 

ruby-1.9.3-p0 - #fetching 
ruby-1.9.3-p0 - #extracting ruby-1.9.3-p0 to /usr/share/ruby-rvm/src/ruby-1.9.3-p0 
/usr/share/ruby-rvm/scripts/functions/utility: line 142: /usr/share/ruby-rvm/log/ruby- 1.9.3-p0/extract.log: Permission denied 
/usr/share/ruby-rvm/scripts/functions/utility: line 148: /usr/share/ruby-rvm/log/ruby- 1.9.3-p0/extract.log: Permission denied 
ERROR: Error running 'bunzip2 < '/usr/share/ruby-rvm/archives/ruby-1.9.3-p0.tar.bz2' | tar xf - -C /usr/share/ruby-rvm/tmp/rvm_src_23435', please read /usr/share/ruby- rvm/log/ruby-1.9.3-p0/extract.log 
ERROR: There has been an error while trying to extract the source. 
Halting the installation. 
ERROR: There has been an error fetching the ruby interpreter. Halting the installation. 

我試圖chmod我被拒絕訪問的目錄,但它不能解決問題。有什麼建議麼?

+1

至於問題被關閉 - 這是用戶正面臨的真正問題,它與Ubuntu安裝RVM的錯誤方式有關,它不是「脫離主題」 – mpapis 2012-02-11 16:56:45

+1

投票重新開放,因爲這只是發生在我身上...似乎像紅寶石標籤裏的人最近一直在交手 – jcollum 2012-04-22 21:23:25

回答

4

請使用這樣的回答:Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v

你的問題不重複,但答案是一樣的。

+0

同意。手動安裝rvm似乎很受歡迎。我喜歡它,因爲我不想讓軟件包更新自己並且弄亂我的寶石。我也推薦多用戶安裝。 – dgmdan 2012-01-31 00:34:57

+1

@dgmdan在多用戶安裝時要小心,在大多數情況下安裝,因爲用戶只是更簡單更安全的選擇,我已經更新了文檔,以便您可以熟悉它們:https://rvm.beginrescueend.com/rvm/install/ – mpapis 2012-01-31 00:38:20

+2

這對我使用自動刪除後卸載所有額外的軟件包 – penner 2012-01-31 00:47:06