问题描述
我试图运行
$ gem install eventmachine -v'0.12.10'
code>
因为在运行时
$ bundle install
在我的rails应用程序中,当它到达eventmachine时出现此错误:
安装eventmachine(0.12.10)
Errno :: EACCES:权限被拒绝 - /Users/pippinlee/.rvm/gems/ ruby-1.9.3-p194 / gems / eventmachine-0.12.10 / .gitignore
安装eventmachine(0.12.10)时发生错误,并且Bundler无法继续。
确保`gem install eventmachine -v'0.12.10'`捆绑成功。
我已经尝试在Gemfile中添加gem'eventmachine','〜> 0.12.10' p>
按照这些()Nokogiri说明我已经使用brew安装了libxml2,libxslt,libiconv-1.13.1文件。
使用-pre(和相应的锁定在Gemfile中)的安装并没有什么不同。
运行:Lion,Xcode 4.3.2,rvm 1.14.10,ruby 1.9.3p194 ,rails(3.2.7,3.2.0)
预先感谢。
也许暴力方法可能有效:
pre $ sudo chown -R pippinlee:staff /用户/ pippinlee / .rvm
我的猜测是你做了一些事情,比如安装另一个gem, root用户不小心。
I'm trying to run
$gem install eventmachine -v '0.12.10'
because when running
$bundle install
within my rails app, when it gets to eventmachine I get this error:
Installing eventmachine (0.12.10)
Errno::EACCES: Permission denied - /Users/pippinlee/.rvm/gems/ruby-1.9.3-p194/gems/eventmachine-0.12.10/.gitignore
An error occured while installing eventmachine (0.12.10), and Bundler cannot continue.
Make sure that `gem install eventmachine -v '0.12.10'` succeeds before bundling.
I have tried adding gem 'eventmachine', '~> 0.12.10' to Gemfile.
As per these (http://nokogiri.org/tutorials/installing_nokogiri.html) Nokogiri instructions I've installed libxml2, libxslt, libiconv-1.13.1 files with brew.
Using -pre (and corresponding lock in Gemfile) for the install doesn't differ result either.
Running: Lion, Xcode 4.3.2, rvm 1.14.10, ruby 1.9.3p194, rails (3.2.7, 3.2.0)
Thanks in advance.
Perhaps the brute-force approach might work:
sudo chown -R pippinlee:staff /Users/pippinlee/.rvm
My guess is you did something, like installing another gem, running as the root user by accident.
这篇关于Eventmachine gem权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!