0
$ gem install sinatra
Fetching: rack-1.5.2.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/local/rvm/gems/ruby-2.0.0-p0 directory.
在我/etc/profile
我已經插入:無法安裝與RVM寶石作爲非root用戶
source /usr/local/rvm/scripts/rvm
注:我使用的是無業遊民,和組:用戶admin:vagrant
。此外,如果這是相關的:
$ echo $GEM_HOME
/usr/local/rvm/gems/ruby-2.0.0-p0
這是顯示一個警告,告訴我去使用'gem install sinatra'來代替。 – Michelle 2013-02-28 04:07:52
你使用的Ruby版本管理器,否則稱爲rvm? – BlackHatSamurai 2013-02-28 04:08:14
此外,這可能有所幫助:http://stackoverflow.com/questions/3853489/installing-gems-using-rvm?rq=1 – BlackHatSamurai 2013-02-28 04:10:31