Clean install OSX 10.9.1 returns “undefined method `path2class'” when trying to install gems

后端 未结 6 1763
时光取名叫无心
时光取名叫无心 2021-02-12 22:15

I just installed a clean Mavericks installation with Homebrew and RVM. Both brew doctor and rvm requirements return \"all good\", however, when I run <

6条回答
  •  佛祖请我去吃肉
    2021-02-12 22:33

    For me this turned out to be a permissions issue. I fixed it by resetting my permissions on my ~/.rvm folder. Mac OS X 10.9.3.

    First, find your system username:

    ls -lA ~ | head
    

    Produces:

    -rw-r--r--@  1 nperry  staff   43012 Jul  1 13:25 .DS_Store
    drwx------  63 nperry  staff    2142 Jul  1 13:40 .Trash
    ...
    

    My username is nperry and my group is staff. Change the following lines to match your user and group.

    sudo chown -R nperry:staff  ~/.rvm
    sudo chmod -R ug+rw ~/.rvm
    

    And no more errors.

提交回复
热议问题