任何使用的命令sudo
似乎都不适用于 RBenv。
我正在尝试安装 ActiveRecord,它说我没有写权限,所以当我尝试这个时:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1 directory.
它说:
sudo: gem: command not found
我怎样才能解决这个问题?