How do I remove Permission denied @ rb_sysopen - Gem install error?

后端 未结 2 2018
有刺的猬
有刺的猬 2021-02-05 15:36

I am trying to install create a new app in Ruby on Rails and I cannot get passed this error:

$ gem install pg

ERROR: While exec

2条回答
  •  太阳男子
    2021-02-05 16:21

    It's likely there's a permissions problem somewhere along the .rbenv path. You might try turning on write privileges for your user with:

    $ chmod -R +w ~/.rbenv
    

    That will recursively (-R) change the file mode (chmod) to write permission (+w) for all files and directories under your user's .rbenv path. There's no particular reason for not having files set to write.

提交回复
热议问题