running into issues with RVM during Ruby install (1.9.2)

前端 未结 4 740
悲&欢浪女
悲&欢浪女 2021-01-03 05:58

I\'m trying to install ruby via RVM and am getting the following error and the logs are not really clear as to what\'s going on, has anyone run into this? I seem to recall t

相关标签:
4条回答
  • 2021-01-03 06:28

    Make sure you've added your user to the rvm group. Also, make sure you log out and log in. Group memberships are processed at login, so in order to write to /usr/local/rvm, you must log out and then log in so that the OS recognizes that you're in the rvm group.

    0 讨论(0)
  • 2021-01-03 06:34

    The error seems to be

    Failed to create the file ruby-1.9.2-p290.tar.bz2: Permission denied
    

    Did you try to do something with sudo one time? You want to make sure that /Users/mark/.rvm/rubies/ is writable for your user.

    0 讨论(0)
  • 2021-01-03 06:47

    I like the solution above but instead of using user:user do user:rvm.

    0 讨论(0)
  • 2021-01-03 06:49

    I had the same error message, and i resolved it by doing sudo chown -R user:user /usr/local/rvm where user is your logged in user, after that i ran rvm install 1.9.2 and it completed successfully.

    0 讨论(0)
提交回复
热议问题