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.valcar...@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.
Homepage: http://augeas.net/


Do you have a clue how to solve it ?


On Wed, Jun 19, 2013 at 6:28 AM, Dominic Cleal <dcl...@redhat.com> wrote:

> On 18/06/13 23:07, Charles Mean wrote:
> > 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 ?
>
> 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
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to