When I type bundle install
, it gives me this error:
-bash: bundle: command not found
So I tried gem install bundler -v 1.9.7
, and got this error:
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Try using sudo:
sudo gem install bundler -v 1.9.7
Make sure you're using a new version of ruby, instead of the one that comeswith Mac OS X. You can install a new one with RVM:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby