puppet 3.x, rubygem pkg can't be found on a RHEL 6.4

5,577 views
Skip to first unread message

T.J. Yang

unread,
Mar 27, 2013, 5:38:12 PM3/27/13
to puppet...@googlegroups.com
Hi,
I followed puppetlab procedure to install open source version of puppet agent 3.x.
It works for CentOS 6.4 but not RHEL 6.4, anyone has pointer where I missed ?

[root@mon04 ~]# yum install puppet
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
rhel-6-server-cf-tools-1-rpms                                                   | 2.8 kB     00:00
rhel-6-server-rhev-agent-rpms                                                   | 2.8 kB     00:00
rhel-6-server-rpms                                                              | 3.7 kB     00:00
rhel-ha-for-rhel-6-server-rpms                                                  | 3.7 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package puppet.noarch 0:3.1.1-1.el6 will be installed
--> Processing Dependency: ruby >= 1.8.7 for package: puppet-3.1.1-1.el6.noarch
--> Processing Dependency: ruby(abi) >= 1.8 for package: puppet-3.1.1-1.el6.noarch
--> Processing Dependency: facter >= 1.6.11 for package: puppet-3.1.1-1.el6.noarch
--> Processing Dependency: hiera >= 1.0.0 for package: puppet-3.1.1-1.el6.noarch
--> Processing Dependency: ruby(selinux) for package: puppet-3.1.1-1.el6.noarch
--> Processing Dependency: ruby-augeas for package: puppet-3.1.1-1.el6.noarch
--> Processing Dependency: /usr/bin/ruby for package: puppet-3.1.1-1.el6.noarch
--> Processing Dependency: ruby-shadow for package: puppet-3.1.1-1.el6.noarch
--> Running transaction check
---> Package facter.x86_64 1:1.6.18-1.el6 will be installed
---> Package hiera.noarch 0:1.1.2-1.el6 will be installed
--> Processing Dependency: rubygem-json for package: hiera-1.1.2-1.el6.noarch
---> Package libselinux-ruby.x86_64 0:2.0.94-5.3.el6 will be installed
---> Package ruby.x86_64 0:1.8.7.352-10.el6_4 will be installed
---> Package ruby-augeas.x86_64 0:0.4.1-1.el6 will be installed
---> Package ruby-libs.x86_64 0:1.8.7.352-10.el6_4 will be installed
--> Processing Dependency: libreadline.so.5()(64bit) for package: ruby-libs-1.8.7.352-10.el6_4.x86_64
---> Package ruby-shadow.x86_64 0:1.4.1-13.el6 will be installed
--> Running transaction check
---> Package compat-readline5.x86_64 0:5.2-17.1.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
[root@mon04 ~]#

[root@xymon04 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@mon04 ~]#

[root@mon04 ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
rhel-6-server-cf-tools-1-rpms                                                   | 2.8 kB     00:00
rhel-6-server-rhev-agent-rpms                                                   | 2.8 kB     00:00
rhel-6-server-rpms                                                              | 3.7 kB     00:00
rhel-ha-for-rhel-6-server-rpms                                                  | 3.7 kB     00:00
repo id                        repo name                                                         status
epel                           Extra Packages for Enterprise Linux 6 - x86_64                     8,516
puppetlabs-deps                Puppet Labs Dependencies El 6 - x86_64                                45
puppetlabs-products            Puppet Labs Products El 6 - x86_64                                   253
rhel-6-server-cf-tools-1-rpms  Red Hat CloudForms Tools for RHEL 6 (RPMs)                            31
rhel-6-server-rhev-agent-rpms  Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs)     16
rhel-6-server-rpms             Red Hat Enterprise Linux 6 Server (RPMs)                          10,291
rhel-ha-for-rhel-6-server-rpms Red Hat Enterprise Linux High Availability (for RHEL 6 Server) (R    253
rpmforge                       RHEL 6Server - RPMforge.net - dag                                  4,591
repolist: 23,996
[root@mon04 ~]#



Keith Burdis

unread,
Mar 27, 2013, 7:20:53 PM3/27/13
to puppet-users

You need to enable the optional repository.

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

Keith Burdis

unread,
Apr 11, 2013, 6:12:29 AM4/11/13
to puppet-users
Try running:

  # yum-config-manager --enable rhel-6-server-optional-rpms

  - Keith


On 10 April 2013 10:04, Yusup Ashrap <aph...@gmail.com> wrote:
I have having the same problem with install puppet on redhat 6.2.

T.J. Yang

unread,
Apr 11, 2013, 4:13:46 PM4/11/13
to puppet...@googlegroups.com
Keith,

Thanks for the following command, I can install puppet on RHEL 6.4 now.


tj

--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/ZIx9U3Ai1ww/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.

To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
T.J. Yang

Yizhar A.

unread,
Jun 18, 2013, 5:18:03 AM6/18/13
to puppet...@googlegroups.com
Fixed. Was an issue of rubygems.  Solved by downloading from external repo:
 
As I don't want to activate my RHN subscription, I downloaded it from CentOS free rpm online repository, that was suitable for my version (RHEL 6.4 - 64bit) at:
http://rpm.pbone.net/index.php3/stat/4/idpl/20348086/dir/centos_6/com/rubygems-1.3.7-1.el6.noarch.rpm.html (Strange thing its from 2010 but fits the ryby of RHEL 6.4 that in ver 1.8.7)
 
OR better if already got Internet connection you can use:
 

On Sunday, June 9, 2013 3:01:36 PM UTC+3, Yizhar A. wrote:
Dear T.J./Keith
 
Kind of getting the same issue T.J. got regards rubygems.
 
Tried to run  # yum-config-manager --enable rhel-6-server-optional-rpms
 
BUT since I'm using RHEL 6.4 (.x86_64) in my test env. with only puppetlabs repo it's not working for me.
 
Is it a repo issue ? What should I add since I don't want to activate my RHN subscrition as I'm only at the testing phase right now.
 
Can I installed it seperatly for .rpm ? what version do I need than ?
 
Thanks,
 
Yizhar A.
Reply all
Reply to author
Forward
0 new messages