安装 el capitan 后是否有人遇到 bundle install 的问题?

Is anyone having problems with bundle install after installing el capitan?

当我键入 bundle install 时,出现以下错误:

-bash: bundle: command not found

所以我尝试了 gem install bundler -v 1.9.7,但得到了这个错误:

ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

尝试使用 sudo:

sudo gem install bundler -v 1.9.7

确保您使用的是 ruby 的新版本,而不是 Mac OS X 附带的版本。您可以使用 [=12= 安装新版本]:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby