1.gem executables will not run
WARNING: You don't have /Users/hexincaifu/.gem/ruby/2.3.0/bin in your PATH,
gem executables will not run.
解决路径环境变量
export PATH="/Users/hexincaifu/.gem/ruby/2.3.0/bin:$PATH
2.While executing gem ..(Gem::FilePermissionError)
解决用下面命令代替sudo
gem install mygem --user-install
转载于:https://www.jianshu.com/p/6f4f253bc254