在 Ubuntu 11.10 上使用 ruby​​ 1.9.3 安装 ruby​​-rvm

发布于 2024-12-29 22:55:10 字数 1181 浏览 1 评论 0原文

rvm 通过以下方式正确安装: sudo apt-get install ruby​​-rvm

当我尝试安装 ruby​​ 1.9.3 时出现这些错误?

anthony@SnakeDoc:~$ 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 访问被拒绝的目录,但它不能解决问题。有什么建议吗?

rvm installs properly through:
sudo apt-get install ruby-rvm

When I try to install ruby 1.9.3 I get these errors?

anthony@SnakeDoc:~$ 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.

I tried to chmod the directories where I get access denied but it does not fix the problem. Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

长梦不多时 2025-01-05 22:55:10

请使用这个答案:使用 RVM 安装了 Ruby 1.9.3,但命令行不显示 ruby​​ -v

您的问题不重复,但答案是 相同。

Please use this answer: Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v

Your question is not duplicate, but the answer is the same.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文