gem install permission problem

后端 未结 5 847
长发绾君心
长发绾君心 2020-11-30 20:31
qichunren@zhaobak:~> gem install hpricot
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don\'t have write permissions into the /opt/ruby-enter         


        
5条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 20:53

    I was getting this error on my shared server through 1and1 hosting. my solution was adding the --user-install option, which just installs it for your logged in user (which is all you need in a shared server environment) example; installing sass

    gem install sass --user-install
    

提交回复
热议问题