简体   繁体   English

安装Nokogiri 1.6.1.2时权限被拒绝错误

[英]Permission denied error while installing Nokogiri 1.6.1.2

I get a permission denied error while installing Nokogiri 1.6.1.2. 我在安装Nokogiri 1.6.1.2时遇到权限被拒绝的错误。

The error is: 错误是:

While executing gem ... (Errno::EACCES)     Permission denied - /usr/local/rvm/gems/ruby-1.9.3-p392/build_info/nokogiri-1.6.1.info

It looks like you've installed RVM on the root level. 看起来您已经在根级别上安装了RVM。 This post might help you solve this issue: 这篇文章可以帮助您解决此问题:

" How to install RVM system requirements without giving sudo access for RVM user " 如何在不授予RVM用户sudo访问权限的情况下安装RVM系统要求

I had the same problem. 我有同样的问题。 When I used RailsInstaller back in 2013, it placed RVM at the system level (which causes problems). 当我在2013年使用RailsInstaller时,它将RVM置于系统级别(这会引起问题)。

All you need to do is uninstall then reinstall RVM. 您需要做的就是卸载然后重新安装RVM。 Here is the most detailed way of uninstalling RVM: " How can I remove RVM (Ruby Version Manager) from my system? " 这是卸载RVM的最详细的方法:“ 如何从系统中删除RVM(Ruby版本管理器)?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM