Re: [Puppet Users] Re: augeas error: Could not evaluate: unknown error - Failed to initialize Augeas

2012-01-19 Thread Dominic Cleal
[ CC'ed to augeas-devel, more on-topic for ruby-augeas build errors ]

On 18/01/12 04:45, LawrieC wrote:
 Thanks for the tip Aaron.
 
 I have stuck with the platform RPMs as indicated earlier in the
 thread. I could not find a ruby-augeas SLED platform RPM.

I'm not familiar with the SUSE community, but I do see a number of
ruby-augeas RPMs and SRPMs on the build service.  Picking one at random:

https://build.opensuse.org/package/show?package=ruby-augeasproject=home%3Ajustin_kinney

The spec doesn't seem to have a %check section though, so you might find
it just masks the problem below until later.

 Now it attempts to build a new RPM for the SLED11SP1 platform but
 fails at the rake testing phase with 13 errors, output follows
 
 + rake
 test
 (in /root/rpmbuild/BUILD/ruby-
 augeas-0.4.1)
 Loaded suite /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
 rake_test_loader
 Started
 EEE.EE
 Finished in 0.018282
 seconds.
 
   1) Error:
 test_basics(TestAugeas):
 SystemCallError: unknown error - Failed to initialize Augeas

That looks pretty bad!  Does Augeas function properly on your system to
begin with?  I'd suggest running augtool and seeing if you get the
same error.

(From the quote below, you may need to install another package for the
Augeas command line tool).

If you get the error, try creating an empty directory and run augtool
-r /path/to/dir to rule out problems with files on your system.

On 11/01/12 23:28, Lawrie Care wrote:
 On the client I have the following augeas and ruby vendor based
 packages installed

 augeas-devel-0.8.1-7.8.2
 libaugeas0-0.8.1-7.8.2

This is interesting, does the libaugeas0 package contain any lens files?
 I can't find a spec for it to see how the SUSE package is split up, but
the EL/Fedora package would put them in the augeas-libs package:

$ rpm -ql augeas-libs | grep -c \.aug\$
219

The lenses should generally match the Augeas library version so check
they're in sync if supplied by another package.

-- 
Dominic Cleal
Red Hat Consulting
m: +44 (0)7817 878113

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



Re: [Puppet Users] Re: augeas error: Could not evaluate: unknown error - Failed to initialize Augeas

2012-01-14 Thread Aaron Grewell
The rpm-based installs of the other components probably expect different
paths than the gem is providing. IMHO you shouldn't mix rpm and gem-based
installs. Weirdness is virtually guaranteed. Pick one style or the other
and stick with it.
On Jan 12, 2012 8:03 PM, LawrieC lawrie.ca...@gmail.com wrote:

 Thanks for the reply.

 I have now installed  the augeas ruby bindings on the client by
 getting

 wget http://augeas.net/download/ruby/ruby-augeas-0.4.1.gem
 and running

 gem install ruby-augeas-0.4.1

 Building native extensions.  This could take a while...
 Successfully installed ruby-augeas-0.4.1
 1 gem installed
 Installing ri documentation for ruby-augeas-0.4.1...
 Installing RDoc documentation for ruby-augeas-0.4.1...

 Alas, i am still getting the same error message.

 Is there any extras i need on the server or client?

 Thanks


 On Jan 12, 9:29 am, R.I.Pienaar r...@devco.net wrote:
  - Original Message -
 
   augeas-devel-0.8.1-7.8.2
   libaugeas0-0.8.1-7.8.2
 
   ruby-devel-1.8.7.p72-5.30.5
   rubygem-rake-0.8.7-0.1.4
   ruby-1.8.7.p72-5.30.5
   rubygems-1.3.7-1.3.3
 
  also need the augeas ruby bindings

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



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