简体   繁体   中英

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM