Install bundler in OSX system ruby

Hi,
I’m trying to install the ruby bundler gem on for the system ruby:
/usr/bin/gem install bundler

This returns the following error:
ERROR: While executing gem … (TypeError)
no implicit conversion of nil into String

Please assist.
Thanks