augeas

149 views
Skip to first unread message

Charles Mean

unread,
Jun 18, 2013, 6:07:00 PM6/18/13
to puppet...@googlegroups.com
Hello guys, I am facing a problem with puppet client installed via gem due Ruby EE.
The problem is the following:

> puppetd -vt
info: Caching catalog for #FQDN
err: Could not run Puppet configuration client: Could not find a default provider for augeas

I have tried to install ruby-augeas(gem install ruby-augeas) but it returns an error while compiling(make can not compile it).

My ruby version is: ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.01
And my puppet client version is: 2.6.2

Do you guys have any idea on how to solve this problem ?

Thank you

Dominic Cleal

unread,
Jun 19, 2013, 5:28:11 AM6/19/13
to puppet...@googlegroups.com
You said you had an error while compiling, what was the error?

At a guess you'll need to ensure you have at least gcc and augeas-devel
available.

--
Dominic Cleal
Red Hat Engineering

Charles Mean

unread,
Jun 19, 2013, 12:46:22 PM6/19/13
to puppet...@googlegroups.com
Hello Dominic, thank you for your reply.
The make error is the following:

> gem install ruby-augeas
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-augeas:
    ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb
creating Makefile

make
gcc -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/1.8/x86_64-linux -I.   -fPIC -g -O2     -I/usr/include/libxml2    -c _augeas.c
_augeas.c: In function 'Init__augeas':
_augeas.c:504: error: 'AUG_ENABLE_SPAN' undeclared (first use in this function)
_augeas.c:504: error: (Each undeclared identifier is reported only once
_augeas.c:504: error: for each function it appears in.)
_augeas.c:519: error: 'AUG_ENOSPAN' undeclared (first use in this function)
_augeas.c:520: error: 'AUG_ECMDRUN' undeclared (first use in this function)
make: *** [_augeas.o] Error 1

Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/ruby-augeas-0.5.0 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/ruby-augeas-0.5.0/ext/augeas/gem_make.out



> cat /usr/local/lib/ruby/gems/1.8/gems/ruby-augeas-0.5.0/ext/augeas/gem_make.out
/usr/local/bin/ruby extconf.rb
creating Makefile

make
gcc -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/1.8/x86_64-linux -I.   -fPIC -g -O2     -I/usr/include/libxml2    -c _augeas.c
_augeas.c: In function 'Init__augeas':
_augeas.c:504: error: 'AUG_ENABLE_SPAN' undeclared (first use in this function)
_augeas.c:504: error: (Each undeclared identifier is reported only once
_augeas.c:504: error: for each function it appears in.)
_augeas.c:519: error: 'AUG_ENOSPAN' undeclared (first use in this function)
_augeas.c:520: error: 'AUG_ECMDRUN' undeclared (first use in this function)
make: *** [_augeas.o] Error 1 

And about your suggest, I have these versions of gcc and augeas-dev:
> gcc --version
gcc (Debian 4.4.5-8) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



> aptitude show libaugeas-dev
Package: libaugeas-dev
State: installed
Automatically installed: no
Version: 0.7.2-1
Priority: optional
Section: libdevel
Maintainer: Nicolas Valcárcel Scerpella (Canonical) <nicolas....@canonical.com>
Uncompressed Size: 90.1 k
Depends: libaugeas0 (= 0.7.2-1)
Description: Development files for writing applications based on libaugeas0
 Augeas is a configuration editing tool. It parses configuration files in their native formats and transforms them into a tree. Configuration changes are made by manipulating this tree and saving it back into native config files.

 This package includes the development files to write programs using the Augeas API.


Do you have a clue how to solve it ?


--
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.
For more options, visit https://groups.google.com/groups/opt_out.



Dominic Cleal

unread,
Jun 19, 2013, 1:19:52 PM6/19/13
to puppet...@googlegroups.com
On 19/06/13 17:46, Charles Mean wrote:
> Hello Dominic, thank you for your reply.
>
[snip]
> make
> gcc -I. -I/usr/local/lib/ruby/1.8/x86_64-linux
> -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -fPIC -g -O2
> -I/usr/include/libxml2 -c _augeas.c
> _augeas.c: In function 'Init__augeas':
> _augeas.c:504: error: 'AUG_ENABLE_SPAN' undeclared (first use in this
> function)
> _augeas.c:504: error: (Each undeclared identifier is reported only once
> _augeas.c:504: error: for each function it appears in.)
> _augeas.c:519: error: 'AUG_ENOSPAN' undeclared (first use in this function)
> _augeas.c:520: error: 'AUG_ECMDRUN' undeclared (first use in this function)
> make: *** [_augeas.o] Error 1
> [snip]
>
> *> aptitude show libaugeas-dev*
> Package: libaugeas-dev
> State: installed
> Automatically installed: no
> Version: 0.7.2-1
> [snip]
>
> Do you have a clue how to solve it ?

Looks like a version problem, the latest version of ruby-augeas requires
augeas 0.8.0 or higher, but your OS version is too old.

You probably want to use ruby-augeas 0.3.0 to match Debian 6's version,
but that's not published on rubygems.org. Try downloading this and
running gem install against it:
http://download.augeas.net/ruby/ruby-augeas-0.3.0.gem

Else you could try Raphael's Ubuntu packages, maybe the 12.04 ones are a
close match for Debian:
https://launchpad.net/~raphink/+archive/augeas/

Charles Mean

unread,
Jun 19, 2013, 1:35:58 PM6/19/13
to puppet...@googlegroups.com
Great Dominic, this version solved the problem.
I have just installed ruby-augeas-0.3.0.gem and puppet is working now =)
Thank you for your help.


Reply all
Reply to author
Forward
0 new messages