It's highly suspect that you have ruby-libs 1.8.5 and 1.8.7 installed.
Might want to see about removing 1.8.5. Also, what does ruby -r
openssl -e 'puts OpenSSL::VERSION' -e 'puts OpenSSL::OPENSSL_VERSION'
-e 'puts OpenSSL::Cipher.class' output?

On Tue, Jan 24, 2012 at 12:11 PM, kgz <[email protected]> wrote:
> Hi,
>
> I'm trying to install puppet as a client on a new machine.
> I received this weird error when trying to start up as /etc/init.d/
> puppet start :
> /usr/lib/ruby/1.8/openssl/cipher.rb:22: Cipher is not a module
> (TypeError)
>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 36:in `gem_original_require'
>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 36:in `require'
>        from /usr/lib/ruby/1.8/openssl.rb:20
>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 36:in `gem_original_require'
>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 36:in `require'
>        from /usr/lib/ruby/site_ruby/1.8/puppet/ssl.rb:3
>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 36:in `gem_original_require'
>        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 36:in `require'
>        from /usr/lib/ruby/site_ruby/1.8/puppet.rb:155
>        from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:271:in
> `require'
>        from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:271:in
> `initialize'
>        from /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:
> 60:in `new'
>        from /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:
> 60:in `execute'
>        from /usr/bin/puppet:4
>
> My Linux is 2.6.18-274.3.1.el5 #1 SMP Tue Sep 6 20:13:52 EDT 2011
> x86_64 x86_64 x86_64 GNU/Linux
> which is a Centos 5.6
>
> and the packages I installed using yum install are:
> ruby-libs-1.8.7.352-5.el5
> ruby-libs-1.8.5-5.el5_4.8
> rubygem-activesupport-2.1.1-2.el5
> ruby-1.8.7.352-5.el5
> ruby-augeas-0.4.1-1.el5
> ruby-irb-1.8.7.352-5.el5
> rubygems-1.8.10-1.el5
> rubygem-activerecord-2.1.1-2.el5
> ruby-shadow-1.4.1-7.el5
> ruby-rdoc-1.8.7.352-5.el5
> libselinux-ruby-1.33.4-5.7.el5
> facter-1.6.3-1.el5
> puppet-2.7.6-2.el5
> puppet-server-2.7.6-2.el5
>
> I even removed the /usr/lib/ruby before reinstalling but it doesn't
> work. Funny thing is , it worked for my puppet master and one of my
> clients, and repeated the same way for this machine, but I kept
> getting this "Cipher is not a module" error. Please point out what I'm
> missing...
>
> thanks,
> K
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>



-- 
Adrien Thebo | Puppet Labs
pgp: 0x6F1C4519 pgp.mit.edu

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

Reply via email to