Error installing nokogiri, permission denied

懵懂的女人 提交于 2019-12-13 00:33:51

问题


When I type "gem install nokogiri" I receive the error:

ERROR: While executing gem ... (Errno: EACCES)
    Permission denied - C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
nokogiri-1.6.0-x86-mingw32/lib/nokogiri/1.9/nokogiri.so

I have no idea what I need to do to fix this. Any help would be appreciated.


回答1:


Try the below :

gem install --http-proxy http://localhost:3128 _name_of_gem_

look here - How do I update Ruby Gems from behind a Proxy (ISA-NTLM) for more information.




回答2:


Finally got bundle install to work after installing gems bindex, msgpack, bootsnap, byebug, childprocess, ffi puma, and sqlite3

I came to this conclusion by sudo installing each gem after I attempted to bundle install, once it through an Error it told me what gem I needed

 In Gemfile:

     puma 


来源:https://stackoverflow.com/questions/17331282/error-installing-nokogiri-permission-denied

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!