通过rvm安装Ruby 1.9.2。 Ubuntu 11.10问题

时间:2012-02-02 23:52:00

标签: ubuntu-11.10

我已经安装了1.8.3版本但是当我尝试通过rvm安装Ruby 1.9.2时会看到一些错误。

我使用Google,使用了很多方法来解决这个问题,但我没有收到任何答案。有人能帮助我吗?

我引用

下面的代码部分(在终端中)
unforbiddenyet@Trash-PC:~$ 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.

1 个答案:

答案 0 :(得分:1)

要创建软件包,请先安装1.8.7,然后再安装当前版本(目前为1.9.3):

$ rvm install 1.8.7
$ rvm install 1.9.3