2012-08-01 53 views
0

我試圖運行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'eventmachine','〜> 0.12.10'到Gemfile。

按照這些(http://nokogiri.org/tutorials/installing_nokogiri.html)Nokogiri說明我已經安裝了libxml2,libxslt,libiconv-1.13.1文件和brew。

使用-pre(和Gemfile中的對應鎖)進行安裝並沒有不同。

運行:獅子時,Xcode 4.3.2,RVM 10年1月14日,紅寶石1.9.3p194,導軌(3.2.7,3.2.0)

在此先感謝。

+1

這是您正在運行捆綁軟件的用戶嗎?哪個用戶用來安裝rvm?檢查.rvm目錄中的權限。 – ALoR 2012-08-01 14:11:55

+0

據我所知,兩者都屬於pippinlee。 這是問什麼時候我$ sudo的創業板安裝EventMachine的-v「0.12.10」 這是輸出會發生什麼:[http://pastebin.com/Bfct7wzG] 看來是一個makefile錯誤。 – Pippin 2012-08-01 14:43:51

回答

2

也許蠻力方法可能會奏效:

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

我的猜測是,你做了什麼,像安裝其他寶石,如運行意外root用戶。