我試圖在rails上安裝Ruby,所以首先我安裝了RVM rvm install 1.9.2
。之後,安裝這個gem install rails
。它顯示了這個錯誤錯誤:執行gem時(Errno :: EISDIR)gem install rails
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /var/lib/gems/1.8 directory.
然後我用這個sudo chmod 0777 /var/lib/gems/1.8/
後,當我安裝,它顯示這個錯誤:
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /var/lib/gems/1.8/cache/railties-3.2.2.gem
然後我跑sudo chmod 0777 /var/lib/gems/1.8/cache/railties-3.2.2.gem
之後,我安裝gem install rails
。再次顯示這個錯誤
ERROR: While executing gem ... (Errno::EISDIR)
Is a directory - /var/lib/gems/1.8/cache/railties-3.2.2.gem