Ask Your Question
0

Unable to install puppet on cent 6.4 - Error Package: rubygem-json requires

asked 2013-10-09 14:44:50 -0500

spuder gravatar image

updated 2013-10-09 15:20:11 -0500

Trying to install puppet agent on a Cent 6.4 machine gives the following error

sudo rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-7.noarch.rpm
yum install puppet
.....
--> Running transaction check
---> Package augeas-libs.x86_64 0:0.9.0-4.el6 will be installed
---> Package rubygem-json.x86_64 0:1.5.5-1.el6 will be installed
--> Processing Dependency: rubygems for package: rubygem-json-1.5.5-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: rubygem-json-1.5.5-1.el6.x86_64 (puppetlabs-deps)
           Requires: rubygems
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

People in ... (more)

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-10-10 13:43:19 -0500

ramindk gravatar image

I think you might be having problems with your Yum repos. rubygems is in EPEL and should be pulled in as a dependency of rubygem-json. I've run through the install a few times on a fresh 6.4 machine with no problems.

edit flag offensive delete link more
0

answered 2013-10-09 14:47:29 -0500

spuder gravatar image

Puppet requires rubygems.

One possible work around is to install rubygems from the REBL repo.

sudo rpm -Uvh http://rbel.frameos.org/rbel6 
yum install rubygems
sudo rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-7.noarch.rpm
yum install puppet

Found this information on the chef website of all places.

edit flag offensive delete link more

Comments

Thanks for the quick answer ;)

Maarten van Wensveen gravatar imageMaarten van Wensveen ( 2013-12-05 07:57:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-10-09 14:44:50 -0500

Seen: 3,886 times

Last updated: Oct 10 '13