facter 1.5.1 ...sudo ruby install.rb WORKS:RedHat/rhel5 FAILS:centOS5 "Could not load facter"

453 views
Skip to first unread message

dmildram

unread,
Aug 29, 2008, 2:30:56 AM8/29/08
to Puppet Developers
I'm new to puppet and ruby-ignorant, but: I've got 2 Very Similar
+virgin systems:

rhel5$ cat /etc/redhat-release
Red Hat Enterprise Linux Client release 5.2 (Tikanga)
rhel5$ ruby -v
ruby 1.8.5 (2006-08-25) [i386-linux]
rhel5$ rpm -aq | grep ruby
ruby-libs-1.8.5-5.el5_2.3
ruby-1.8.5-5.el5_2.3


centOS5$ cat /etc/redhat-release
CentOS release 5.2 (Final)
CentOS5$ ruby -v
ruby 1.8.5 (2006-08-25) [i386-linux]
CentOS5$ rpm -aq | grep ruby
ruby-libs-1.8.5-5.el5_1.1
ruby-1.8.5-5.el5_1.1

PROBLEM: when I do the same on both systems (after 3 bootstrap cmds
below),
rhel5 works (ignoring the rdoc error warning) ; centOS5 fails

wget http://reductivelabs.com/downloads/facter/facter-latest.tgz
tar xzpf facter-latest.tgz
cd facter-1.5.1/

centOS5$ sudo ruby install.rb
Missing rdoc; skipping documentation
Could not load facter; cannot install ## <==OFFENDING ERROR MSG

I'm guessing something dumb here (like myself), but I read the FAQ
and searched this group.

I have done all updates on the RHEL5 box and not yet on the centOS5
box.

Permissions are all readable (non-root-owned in my homedir); files all
look the same.

Thanks in advance for any ideas ! dmil...@gmail.com


Paul Nasrat

unread,
Sep 1, 2008, 11:44:04 PM9/1/08
to puppe...@googlegroups.com

On 29 Aug 2008, at 07:30, dmildram wrote:

>
> I'm new to puppet and ruby-ignorant, but: I've got 2 Very Similar
> +virgin systems:
>
> rhel5$ cat /etc/redhat-release
> Red Hat Enterprise Linux Client release 5.2 (Tikanga)
> rhel5$ ruby -v
> ruby 1.8.5 (2006-08-25) [i386-linux]
> rhel5$ rpm -aq | grep ruby
> ruby-libs-1.8.5-5.el5_2.3
> ruby-1.8.5-5.el5_2.3
>
>
> centOS5$ cat /etc/redhat-release
> CentOS release 5.2 (Final)
> CentOS5$ ruby -v
> ruby 1.8.5 (2006-08-25) [i386-linux]
> CentOS5$ rpm -aq | grep ruby
> ruby-libs-1.8.5-5.el5_1.1
> ruby-1.8.5-5.el5_1.1
>
> PROBLEM: when I do the same on both systems (after 3 bootstrap cmds
> below),
> rhel5 works (ignoring the rdoc error warning) ; centOS5 fails


Does your RHEL 5 box have facter installed already - either by RPM or
gem?

Have you got a RUBYLIB env setup on the RHEL 5 box that points to your
extracted facter dir?

Seems that install.rb contains a self-referential prereq to facter
itself - this seems wrong to me, and looks as if it's possibly just
come from the puppet install.rb as we don't need the other PREREQS
there either.

PREREQS = %w{openssl facter xmlrpc/client xmlrpc/server cgi}

> 'm guessing something dumb here (like myself), but I read the FAQ
> and searched this group.

I think most people end up doing gem install facter or use dlutter's
rpms.

Paul

dmildram

unread,
Sep 5, 2008, 12:12:01 PM9/5/08
to Puppet Developers
Bingo! Merely removed "facter" from PREREQS line in factor-1.5.1/
install.rb

THEN, "sudo ruby install.rb" does a nice install

...it installs /usr/bin/facter + more in /usr/lib/ruby/site_ruby/
* .


Thanks! -dmildram

On Sep 1, 11:44 pm, Paul Nasrat <pnas...@googlemail.com> wrote:
> On 29 Aug 2008, at 07:30, dmildram wrote:
>
>
>
>
>
> > I'm new to puppet and ruby-ignorant, but: I've got 2 Very Similar
> > +virgin systems:
>
> > rhel5$ cat /etc/redhat-release
> > Red Hat Enterprise Linux Client release 5.2 (Tikanga)
> > rhel5$ ruby -v
> > ruby 1.8.5 (2006-08-25) [i386-linux]
> > rhel5$ rpm -aq | grep ruby
> > ruby-libs-1.8.5-5.el5_2.3
> > ruby-1.8.5-5.el5_2.3
>
> > centOS5$ cat /etc/redhat-release
> > CentOS release 5.2 (Final)
> > CentOS5$ ruby -v
> > ruby 1.8.5 (2006-08-25) [i386-linux]
> > CentOS5$ rpm -aq | grep ruby
> > ruby-libs-1.8.5-5.el5_1.1
> > ruby-1.8.5-5.el5_1.1
>
> > PROBLEM: when I do the same on both systems (after 3 bootstrap cmds
> > below),
> > rhel5 works (ignoring the rdoc error warning) ; centOS5 fails
>
> Does your RHEL 5 box havefacterinstalled already - either by RPM or  
> gem?
>
> Have you got a RUBYLIB env setup on the RHEL 5 box that points to your  
> extractedfacterdir?
>
> Seems that install.rb contains a self-referential prereq tofacter 
> itself - this seems wrong to me, and looks as if it's possibly just  
> come from the puppet install.rb as we don't need the other PREREQS  
> there either.
>
> PREREQS = %w{opensslfacterxmlrpc/client xmlrpc/server cgi}
>
> > 'm guessing something dumb here (like myself),  but I read the FAQ
> > and searched this group.
>
> I think most people end up doing gem installfacteror use dlutter's  
> rpms.
>
> Paul

Paul Nasrat

unread,
Sep 5, 2008, 4:48:23 PM9/5/08
to puppe...@googlegroups.com

On 5 Sep 2008, at 17:12, dmildram wrote:

>
> Bingo! Merely removed "facter" from PREREQS line in factor-1.5.1/
> install.rb
>
> THEN, "sudo ruby install.rb" does a nice install
>
> ...it installs /usr/bin/facter + more in /usr/lib/ruby/site_ruby/

Can you file a bug against facter please and I'll get to it.

Paul

James Turnbull

unread,
Sep 5, 2008, 8:01:56 PM9/5/08
to puppe...@googlegroups.com

It's done in commit 4998d3bbbf27dc995aa349666918b4acbd2c8975 in my repo.

Cheers

James

--
Author of:
* Pulling Strings with Puppet
(http://www.amazon.com/gp/product/1590599780/)
* Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)
* Hardening Linux
(http://www.amazon.com/gp/product/1590594444/)

signature.asc
Reply all
Reply to author
Forward
0 new messages