Need more info about the system you’re trying to install on.
You should probably also use ‘sudo’
sudo gem install gem_name --include-dependencies
and include here the full error messages.
You might also check out the rubygems web site and the ruby on rails
web sites.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.