qichunren@zhaobak:~> gem install hpricot
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8 directory.
目前的登录用户是qichunren,并且qichunre用户具有.gem dir的写许可权。我想知道为什么gem首先不将文件安装到我的home .gem dir中?为什么我的gem common首先要将文件安装到/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8