[英]EC2: Unable to rvm install ruby
I am following this tutorial and am stuck at trying to install ruby using rvm (scroll down to see the command in the link) 我正在按照这个教程而坚持尝试使用rvm安装ruby(向下滚动以查看链接中的命令)
I have searched online for a variety of solutions but nothing seems to work. 我在网上搜索了各种解决方案,但似乎没有任何效果。 How can I resolve the issues below?
我该如何解决以下问题?
rvm install ruby
rvm安装ruby
Searching for binary rubies, this might take some time.
搜索二进制红宝石,这可能需要一些时间。
Found remote file https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.3.0.tar.bz2 Checking requirements for ubuntu.
找到远程文件https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.3.0.tar.bz2检查ubuntu的要求。
Installing requirements for ubuntu.
安装ubuntu的要求。 mkdir: cannot create directory '/usr/local/rvm/log/1463248047_ruby-2.3.0': Permission denied
mkdir:无法创建目录'/usr/local/rvm/log/1463248047_ruby-2.3.0':权限被拒绝
tee: /usr/local/rvm/log/1463248047_ruby-2.3.0/update_system.log: No such file or directory
tee:/usr/local/rvm/log/1463248047_ruby-2.3.0/update_system.log:没有这样的文件或目录
Updating system......... Error running 'requirements_debian_update_system ruby-2.3.0',
更新系统.........运行'requirements_debian_update_system ruby-2.3.0'时出错,
showing last 15 lines of /usr/local/rvm/log/1463248047_ruby-2.3.0/update_system.log
显示/usr/local/rvm/log/1463248047_ruby-2.3.0/update_system.log的最后15行
tail: cannot open '/usr/local/rvm/log/1463248047_ruby-2.3.0/update_system.log' for reading: No such file or directory Requirements installation failed with status: 1.
tail:无法打开'/usr/local/rvm/log/1463248047_ruby-2.3.0/update_system.log'进行阅读:没有此类文件或目录要求安装失败,状态为:1。
Notes for debugging: 调试说明:
1) The previous steps to install rvm have been taken already. 1)已经采取了以前安装rvm的步骤。 Mainly:
主要是:
su - deploy
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable
2) I tried running sudo rvm install ruby
, but got the following error 2)我尝试运行
sudo rvm install ruby
,但收到以下错误
sudo: rvm: command not found
sudo:rvm:找不到命令
尝试通过此命令更改rvm目录的权限:
sudo chmod -R a+xwr /usr/local/rvm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.