【发布时间】:2016-07-05 12:14:10
【问题描述】:
我正在尝试使用 link 在 Rails 上安装 ruby
但出现错误。当我运行这个 rvm install 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
档案 配置 文档 示例 gems help installed.at 许可证 man patchsets RELEASE scripts tmp VERSION
bin contrib 环境 gem-cache gemsets hooks lib 日志补丁 README rubies src 用户包装器
【问题讨论】:
-
安装不同的ruby版本也会出现同样的错误?
-
是的,同样的错误发生
-
好像是权限问题,试试
sudo rvm install看看有没有用?不建议用rvm运行sudo,但值得一试 -
sudo: rvm: command not found getting this error
-
是您的用户名拥有的
/usr/local/rvm/log吗?运行ls找出答案。如果是,那么可能是 Debian 本身 :))
标签: ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-4