2012-01-31 105 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