Eventmachine gem权限被拒绝

时间:2012-08-01 02:23:07

标签: gem nokogiri eventmachine

我正在尝试

$gem install eventmachine -v '0.12.10'

因为在运行时

$bundle install

在我的rails应用程序中,当它到达eventmachine时,我收到此错误:

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.

我尝试添加gem'ventmachine','〜> 0.12.10'到Gemfile。

根据这些(http://nokogiri.org/tutorials/installing_nokogiri.html)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)

提前致谢。

1 个答案:

答案 0 :(得分:2)

也许蛮力方法可行:

sudo chown -R pippinlee:staff /Users/pippinlee/.rvm

我的猜测是你做了一些事情,比如安装另一个gem,偶然以root用户身份运行。