$ 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
我已经插入:
source /usr/local/rvm/scripts/rvm
注意:我使用的是 vagrant,group:user 是admin:vagrant
. 此外,如果这是相关的:
$ echo $GEM_HOME
/usr/local/rvm/gems/ruby-2.0.0-p0