To install ruby, gem, bundler on macOS Sierra, the better way is to use rvm, rbenv requires much efforts but may still fails you somehow.