2016-08-12 170 views
1

我試圖在Ubuntu上安裝Rails,但它顯示了以下錯誤:導軌安裝失敗在Ubuntu

ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /var/lib/gems/1.9.1 directory.

請幫我安裝導軌的寶石。

+0

嘗試:sudo的創業板安裝導軌 –

+1

可能的複製[安裝寶石或更新RubyGems的失敗,權限錯誤](http://stackoverflow.com/questions/14607193/installing-gem-or-updating-rubygems-失敗與權限錯誤) – webster

+0

它顯示了這一點 - sudo:無法更改爲root gid:操作不允許 –

回答

1
Run This Command 
sudo gem update --system