在rails

时间:2016-07-05 12:14:10

标签: ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-4

我正在尝试使用此link

在rails上安装ruby

但是得到错误。当我运行这个rvm安装2.3.1
我收到此错误

     mkdir: cannot create directory ‘/usr/local/rvm/log/1467720951_ruby-2.3.1’: Permission denied
tee: /usr/local/rvm/log/1467720951_ruby-2.3.1/update_system.log: No such file or directory

     Error running 'requirements_debian_update_system ruby-2.3.1',
    showing last 15 lines of /usr/local/rvm/log/1467720651_ruby-2.3.1/update_system.log
    tail: cannot open ‘/usr/local/rvm/log/1467720651_ruby-2.3.1/update_system.log’ for reading: No such file or directory
    Requirements installation failed with status: 1.<br/>
When i ran curl -sSL https://get.rvm.io | bash -s stable <br/>
so it was install on /usr/local/rvm


当我在/ usr / local / rvm里面运行ls时遇到此错误 aniket@aniket.shivam-L740-X4010:/ usr / local / rvm $ ls archives config docs examples gems help installed.at LICENSE man patchsets RELEASE scripts tmp VERSION bin contrib environment gem-cache gemsets hooks lib log patches README rubies src user wrappers

1 个答案:

答案 0 :(得分:1)

请尝试使用以下命令,

String

然后用

重试
sudo chmod -R 777 /usr/local

希望这能解决您的问题。