Can not install foreman

Hello Team,

I can not run foreman-installer. I did uninstall and trying to install it again. but I can’t. any idea how to fix this issue. I need to fix it asap.

[root@foreman ~]# foreman-installer -i
/usr/share/rubygems/rubygems/specification.rb:12:in `require': cannot load such file -- uri (LoadError)
	from /usr/share/rubygems/rubygems/specification.rb:12:in `<top (required)>'
	from /usr/share/rubygems/rubygems.rb:1076:in `require'
	from /usr/share/rubygems/rubygems.rb:1076:in `<module:Gem>'
	from /usr/share/rubygems/rubygems.rb:114:in `<top (required)>'
	from <internal:gem_prelude>:1:in `require'
	from <internal:gem_prelude>:1:in `<compiled>'

Thanks in advance. You guys are awesome…

Kind regards,


URI is a built in from Ruby which make me think your Ruby is broken. What kind of system is it and how did you install Ruby?