$ gem install passenger
Fetching: passenger-4.0.5.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Users/snowcrash/.rvm/gems/ruby-2.0.0-p195 directory.
$ ls -ld /Users/snowcrash/.rvm/gems/ruby-2.0.0-p195
drwxrwsr-x 8 root rvm 272 21 May 16:07 /Users/snowcrash/.rvm/gems/ruby-2.0.0-p195
显然,我的 ruby 版本归 root/rvm 所有。
我对这个建议使 .gem/specs 世界可写的 SO 答案不满意: Permission denied error with RVM
这个 SO 答案是针对特定的 gem: 执行 gem 时出错...权限被拒绝
有更好的建议吗?
也许修复 .rvm 目录的权限/所有权?