最简单安装
gem install bundler
出错!
Fetching: bundler-1.16.1.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
再改用su
sudo gem install bundler
还不行
Fetching: bundler-1.16.1.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
那就只能安装到/usr/local/bin
sudo gem install -n /usr/local/bin bundler
其它很多gem的安装时也都会遇到没权限安装到usr/bin下的
网友评论