Issue Installing Puppet on Red Hat6

1,638 views
Skip to first unread message

Gmoney

unread,
Jan 26, 2012, 6:33:19 PM1/26/12
to Puppet Users, gregory....@us.icap.com
I have been trying to follow the bootstrap instructions for installing
puppet-dashboard. I keep getting error about rubyge(rake) and
rubygems. I'd appreciate any help or corrections, thanks in advance.

ruby-libs-1.8.7.299-4.el6.x86_64
ruby-1.8.7.299-4.el6.x86_64

These are some installation steps I took.

rvm tools rvm-env ruby bash
rvm install 1.8.7

yum install ruby

downloaded rubygems from:
http://rubygems.org/pages/download

gem install rubygems-update

LD_LIBRARY_PATH=/usr/local/rvm/src/ruby-1.8.7-p357:$PATH
export LD_LIBRARY_PATH
gem install mysql-2.8.1.gem


install rake:
git clone g...@github.com:gmoneyice/rake
cd /root/ruby
gem install rake




Here is the error:

yum install puppet-dashboard
Loaded plugins: rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package puppet-dashboard.noarch 0:1.2.4-1.el6 set to be updated
--> Processing Dependency: ruby-mysql for package: puppet-
dashboard-1.2.4-1.el6.noarch
--> Processing Dependency: rubygem(rake) for package: puppet-
dashboard-1.2.4-1.el6.noarch
--> Processing Dependency: rubygems for package: puppet-
dashboard-1.2.4-1.el6.noarch
--> Running transaction check
---> Package puppet-dashboard.noarch 0:1.2.4-1.el6 set to be updated
--> Processing Dependency: rubygem(rake) for package: puppet-
dashboard-1.2.4-1.el6.noarch
--> Processing Dependency: rubygems for package: puppet-
dashboard-1.2.4-1.el6.noarch
---> Package ruby-mysql.x86_64 0:2.8.2-1.el6 set to be updated
--> Finished Dependency Resolution
Error: Package: puppet-dashboard-1.2.4-1.el6.noarch (puppetlabs-
products)
Requires: rubygem(rake)
Error: Package: puppet-dashboard-1.2.4-1.el6.noarch (puppetlabs-
products)
Requires: rubygems
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Michael Stahnke

unread,
Jan 26, 2012, 7:12:43 PM1/26/12
to puppet...@googlegroups.com, gregory....@us.icap.com

You're mixing native packaging and ruby/source bits quite a bit.
You'll likely have better luck doing it all one way or the other.

On EL6, I normally don't use rvm.

Just

yum install puppet-dashboard (You might need EPEL setup as well for
dependencies).

If you're using RHEL (actual RHEL), be sure you have the 'optional'
channels enabled, as those have rubygem-rake, and rubygems, I think.


Mike


>
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>

joe

unread,
Jan 26, 2012, 7:17:11 PM1/26/12
to Puppet Users
You're mixing downloads and system packages.

rpm (thus yum) doesn't recognize that you have rubygems and rake
installed, because it only looks at the package database to determine
that. Right now, you are missing a repo that contains those packages
in your rh6 config, so yum can't find and install them automatically.

Best practice is to download everything, or use only system packages.
Don't try to do both.

RHEL6 has an optional repo that likely contains these packages. Try
enabling it.

Ryan Bowlby

unread,
Jan 26, 2012, 10:09:46 PM1/26/12
to Puppet Users
I use CentOS 6.2 with yum-priorities and several additional
repositories. In general the following priority order works well:

updates -> extras -> puppetlabs -> epel -> rpmforge

Then, as said previously, just run yum -y install puppet-dashboard and
continue following docs. That setup will allow you access to just
about every package you would need without causing crazy dependency
issues.

-Ryan

Gmoney

unread,
Feb 10, 2012, 12:35:48 PM2/10/12
to Puppet Users
Tried all suggestions. The Red Hat Optional channel contains
rubygems-1.37 ( not 1.8.7 ) , the ruby and ruby-libs are both 1,8.7,
Guess I have to grab the source and build it myself, I can't seem to
find rubygems-1.8.7 anywhere.

yum -y install puppet-dashboard
Loaded plugins: rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package puppet-dashboard.noarch 0:1.2.5-1.el6 set to be updated
--> Processing Dependency: ruby(abi) = 1.8 for package: puppet-
dashboard-1.2.5-1.el6.noarch
--> Processing Dependency: ruby > 1.8.7 for package: puppet-
dashboard-1.2.5-1.el6.noarch
--> Processing Dependency: ruby-mysql for package: puppet-
dashboard-1.2.5-1.el6.noarch
--> Processing Dependency: rubygem(rake) for package: puppet-
dashboard-1.2.5-1.el6.noarch
--> Processing Dependency: rubygems for package: puppet-
dashboard-1.2.5-1.el6.noarch
--> Processing Dependency: /usr/bin/ruby for package: puppet-
dashboard-1.2.5-1.el6.noarch
--> Running transaction check
---> Package puppet-dashboard.noarch 0:1.2.5-1.el6 set to be updated
--> Processing Dependency: rubygem(rake) for package: puppet-
dashboard-1.2.5-1.el6.noarch
--> Processing Dependency: rubygems for package: puppet-
dashboard-1.2.5-1.el6.noarch
---> Package ruby.x86_64 0:1.8.7.299-4.el6 set to be updated
---> Package ruby-libs.x86_64 0:1.8.7.299-4.el6 set to be updated
---> Package ruby-mysql.x86_64 0:2.8.2-1.el6 set to be updated
--> Finished Dependency Resolution
Error: Package: puppet-dashboard-1.2.5-1.el6.noarch (puppetlabs-
products)
Requires: rubygems
Error: Package: puppet-dashboard-1.2.5-1.el6.noarch (puppetlabs-
products)
Requires: rubygem(rake)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest




jcbollinger

unread,
Feb 10, 2012, 6:02:30 PM2/10/12
to Puppet Users


On Feb 10, 11:35 am, Gmoney <greg.caldwe...@gmail.com> wrote:
> Tried all suggestions. The Red Hat Optional channel contains
> rubygems-1.37 ( not 1.8.7 ) , the ruby and ruby-libs are both 1,8.7,
> Guess I have to grab the source and build it myself, I can't seem to
> find rubygems-1.8.7 anywhere.


Why do you assume that the version of the rubygems package available
from one of RedHat's official channels is inappropriate for your
RedHat installation? There is no particular reason to expect that the
version number of the rubygems package will be the same as the version
number of the ruby package. If there were, you would expect the
former to be a subpackage of the latter, in which case it would be
named ruby-gems.


John

treydock

unread,
Feb 11, 2012, 8:48:28 AM2/11/12
to Puppet Users
rubygems-1.37 is correct for RHEL 6. rubygems is the "gem" program,
ie package manager for ruby, it's not a subset or Ruby. Do you have
EPEL enabled ? You'll need that to satisfy some gem dependencies.
The package your missing is rubygem-rake.
Reply all
Reply to author
Forward
0 new messages