2012-02-02 122 views
1

我已經安裝了1.8.3版本,但是當我試圖通過rvm安裝Ruby 1.9.2時看到一些錯誤。通過rvm安裝Ruby 1.9.2。 Ubuntu 11.10問題

我用Google,用了很多方法來解決這個問題,但是我還沒有收到任何答案。有誰能夠幫助我?

我引用下面

[email protected]:~$ rvm install 1.9.2 

0Warning:  Failed to create the file yaml-0.1.4.tar.gz: Access is denied 


Database file /usr/share/ruby-rvm/config/packages does not exist. 

0Warning: Failed to create the file ruby-1.9.2-p290.tar.bz2: Denied Warning: Access 

curl: (23) Failed writing body (0 != 2503) 
There was an error, please check /usr/share/ruby-rvm/log//*.log. Next we'll try to fetch via http. 

0Warning: Failed to create the file ruby-1.9.2-p290.tar.bz2: Denied Warning: Access 

Failed writing body (0 != 2804) 
There was an error, please check /usr/share/ruby-rvm/log//*.log 


There has been an error while trying to fetch the source. 
Halting the installation. 
There has been an error fetching the ruby interpreter. Halting the installation. 
+0

類似的問題作爲http://stackoverflow.com/q/7638885/422353?看起來像rvm是以root身份安裝的,現在你不能像普通用戶那樣安裝ruby。 – madth3 2012-02-03 00:21:32

+0

你是從[單用戶還是多用戶安裝](http://beginrescueend.com/rvm/install/)開始的? – sarnold 2012-02-03 00:26:14

回答

1

的(在終端中)代碼的部分要創建包,先安裝1.8.7,然後安裝最新版本(目前1.9.3):

$ rvm install 1.8.7 
$ rvm install 1.9.3