【问题标题】:Error installing ruby on rails在 Rails 上安装 ruby​​ 时出错
【发布时间】: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


【解决方案1】:

请尝试以下命令,

sudo chmod -R 777 /usr/local

然后重试

rvm install 2.3.1

希望这能解决您的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-12-11
    • 2021-06-22
    • 2012-09-02
    • 1970-01-01
    • 2013-03-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多